Scripting/Server/Functions/SetWeatherLock
true keeps the weather you set with SetWeather (re-sent every 3 s) instead of letting the game cycle it; false returns to the game's own weather. Works together with SetTimeLock (v0.2.0+).
Syntax
SetWeatherLock(bool)Arguments
- bool value
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "setweatherlock" )
{
SetWeatherLock( true );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- ToggleRealMoney
- SetTime
- SetTimeLock
- SetTimeScale
- GetTime
- SetWeather
- SetVirtualWorldTime
- SetVirtualWorldWeather
- SetGamespeed
- SetGravity
- ToggleImprovedCarCam
- SetPlayerBlipStyle
Section: World settings
Categories: Server functions | World settings