setOverrideWeather
SET_OVERRIDE_WEATHER0xA43D5C6FE51ADBEFThe GTA V native SET_OVERRIDE_WEATHER of the MISC namespace, as LS:MP client scripts call it: the global function setOverrideWeather, in JavaScript and in Lua.
setOverrideWeather(weatherType: string): voidsetOverrideWeather(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_OVERRIDE_WEATHER(const char* weatherType)- Hash
0xA43D5C6FE51ADBEF