Server
SetWeather
On Renewed-Weathersync the weather lasts until its forecast moves on.
Parameters
kindstring— a GTA weather type, such asCLEAR,RAIN, orTHUNDER
Returns
boolean
Example
Bridge.SetWeather('RAIN')SetTime
Parameters
hournumber—0to23minutenumber— optional. Defaults to0.
Returns
boolean
Example
Bridge.SetTime(12, 30)FreezeTime
Parameters
stateboolean— optional. Defaults totrue.
Returns
boolean — false on cd_easytime, which cannot freeze time from a script.
Example
Bridge.FreezeTime(true)GetWeather
Parameters
None.
Returns
string|nil
Example
print(Bridge.GetWeather())GetTime
Parameters
None.
Returns
table|nil — { hour, minute }
Example
local time = Bridge.GetTime()
if time and time.hour >= 22 then print('night shift') end