setCurrWeatherState
SET_CURR_WEATHER_STATE0x578C752848ECFA0CThe GTA V native SET_CURR_WEATHER_STATE of the MISC namespace, as LS:MP client scripts call it: the global function setCurrWeatherState, in JavaScript and in Lua.
setCurrWeatherState(
weatherType1: Hash,
weatherType2: Hash,
percentWeather2: number
): voidsetCurrWeatherState(
weatherType1: Hash,
weatherType2: Hash,
percentWeather2: 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_CURR_WEATHER_STATE(Hash weatherType1, Hash weatherType2, float percentWeather2)- Hash
0x578C752848ECFA0C- Formerly
_SET_WEATHER_TYPE_TRANSITION