MiscClientBlocked

setWeatherTypeOvertimePersist

SET_WEATHER_TYPE_OVERTIME_PERSIST0xFB5045B7C42B75BF

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

SignatureJavaScript
setWeatherTypeOvertimePersist(weatherType: string, time: number): void
SignatureLua
setWeatherTypeOvertimePersist(weatherType: string, time: number)
✕
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_OVERTIME_PERSIST(const char* weatherType, float time)
Hash
0xFB5045B7C42B75BF
Formerly
_SET_WEATHER_TYPE_OVER_TIME

Open in the interactive natives reference