MiscClientBlocked

setRandomWeatherType

SET_RANDOM_WEATHER_TYPE0x8B05F884CF7E8020

The 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.

SignatureJavaScript
setRandomWeatherType(): void
SignatureLua
setRandomWeatherType()
✕
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

Open in the interactive natives reference