- Documentation
- Shared functions
- getWeather
Function
getWeather
Returns the current weather and the weather a smooth change from setWeatherBlended is heading towards (or nil).
Syntax
int, int getWeather()Returns
Current weather and the target one (or nil).
Example
local current, target = getWeather()
outputDebugString("Pogoda: " .. current .. (target and (" -> " .. target) or ""))
See also
setWeatherChanges the weather immediately for every player. Numbers 0-22 are San Andreas weathers, e.g. 0 extra sunny, 1-7 different mixes of sun and clouds, 8 storm, 9 fog, 16 rain, 19 sandstorm. It stops a smooth change started withsetWeatherBlended.setWeatherBlendedSchedules a smooth weather change: the server switches to the new weather after about two game hours.