By default, the weather system used is , if you don't have it then go to client/framework/weather.lua and place your own weather exports/events inside Weather() function.
Example for qb-weathersync:
function Weather(state)
if state then
-- Freeze time
TriggerEvent('qb-weathersync:client:DisableSync')
else
-- Unfreeze time
TriggerEvent('qb-weathersync:client:EnableSync')
end
end