setWeatherTypeNow
SET_WEATHER_TYPE_NOW0x29B487C359E19889The GTA V native SET_WEATHER_TYPE_NOW of the MISC namespace, as LS:MP client scripts call it: the global function setWeatherTypeNow, in JavaScript and in Lua.
setWeatherTypeNow(weatherType: string): voidsetWeatherTypeNow(weatherType: string)✕
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_WEATHER_TYPE_NOW(const char* weatherType)- Hash
0x29B487C359E19889