setRandomWeatherType
SET_RANDOM_WEATHER_TYPE0x8B05F884CF7E8020The GTA V native SET_RANDOM_WEATHER_TYPE of the MISC namespace, as LS:MP client scripts call it: the global function setRandomWeatherType, in JavaScript and in Lua.
setRandomWeatherType(): voidsetRandomWeatherType()✕
Blocked for scripts: Managed world state
LS:MP manages shared weather and restricts direct clock changes. The checked clock setters document their accepted ranges.
Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.
Reference
- Namespace
- Misc MISC
- In the game
void SET_RANDOM_WEATHER_TYPE()- Hash
0x8B05F884CF7E8020