๐ ๏ธSetup
This is a detailed setup guide for Weather Management. If you have any questions before making a purchase, you can contact us on Discord
Detailed Config is Provided with the script with detailed information:
Supports: Every Server

Integrated sync of events and exports from
qb-weathersync
,cd_easytime
, andvSync
. (Note: You only need our script running, no other weather script is required)
Exports
setWeather [type]
Switch to a specified weather type from CodeStudio.WeatherTypes
exports["cs_weather"]:setWeather("snow")
setTime [hour] (minute)
Sets sun position based on time to specified
exports["cs_weather"]:setTime(9, 20) -- 9:1=20 AM
setTimeFreeze [toggle]
Freeze or Unfreeze Time
exports["cs_weather"]:setTimeFreeze(true) -- true/false
setBlackout (true|false)
Sets or toggles blackout state
exports["cs_weather"]:setBlackout()
setDynamicWeather (true|false)
Sets or toggles dynamic weather state
exports["cs_weather"]:setDynamicWeather(); -- Toggle
getBlackoutState
Returns if the blackout is enabled or disabled
exports["cs_weather"]:getBlackoutState();
getTimeFreezeState
Returns if time progression is enabled or disabled
exports["cs_weather"]:getTimeFreezeState();
getWeatherState
Returns the current weather type
exports["cs_weather"]:getWeatherState();
getDynamicWeather
Returns if time progression is enabled or disabled
exports["cs_weather"]:getDynamicWeather();
getTime
Returns current server time
exports["cs_weather"]:getTime();
Events
All of these examples are triggered CLIENT side!
EnableSync
TriggerEvent('cs:weather:client:EnableSync')
DisableSync
TriggerEvent("cs:weather:client:DisableSync")
setTime
TriggerServerEvent("cs:weather:server:setTime", hour, minute)
setWeather
TriggerServerEvent("cs:weather:server:setWeather", TYPE)
Commands
/weather_panel - Toggle Dashboard
/freezeweather - Freeze weather
/weather [type] - Set weather
/freezetime [1/0] - Toggle Freeze Time
/blackout - Toggle blackout
/morning - Set time to 9am
/noon - Set time to 12pm
/evening - Set time to 6pm
/night - Set time to 11pm
/time [hour] [minute] - Set time to whatever you want
Additional detailed guidance can be found in the config itself. If you need further assistance, please feel free to contact us on Discord.
Last updated