MiscClientBlocked

setWeatherTypeNowPersist

SET_WEATHER_TYPE_NOW_PERSIST0xED712CA327900C8A

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

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

Open in the interactive natives reference