🛠️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

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

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!

RequestStateSync

TriggerServerEvent("cs:weather:server:RequestStateSync")

EnableSync

TriggerServerEvent("cs:weather:client:EnableSync")

DisableSync

TriggerServerEvent("cs:weather:client:DisableSync")

setTime

TriggerServerEvent("cs:weather:server:setTime", hour, minute)

Commands

/weather_panel - Toggle Dashboard

/freezeweather - Freeze weather

/weather [type] - Set weather

/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