MiscClientBlocked

setWeatherTypePersist

SET_WEATHER_TYPE_PERSIST0x704983DF373B198F

The GTA V native SET_WEATHER_TYPE_PERSIST of the MISC namespace, as LS:MP client scripts call it: the global function setWeatherTypePersist, in JavaScript and in Lua.

SignatureJavaScript
setWeatherTypePersist(weatherType: string): void
SignatureLua
setWeatherTypePersist(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_PERSIST(const char* weatherType)
Hash
0x704983DF373B198F

Open in the interactive natives reference