Scripting/Server/Functions/SetWeather
Sets/reads the weather id. Applies to every virtual world (it removes the per-world weather set with SetVirtualWorldWeather).
Syntax
SetWeather(id)GetWeather()Arguments
- int id
Example
function onScriptLoad()
{
SetWeather( 2 ); // rain
}Related pages
- ToggleRealMoney
- SetTime
- SetTimeLock
- SetTimeScale
- SetWeatherLock
- GetTime
- SetVirtualWorldTime
- SetVirtualWorldWeather
- SetGamespeed
- SetGravity
- ToggleImprovedCarCam
- SetPlayerBlipStyle
Section: World settings
Categories: Server functions | World settings