MiscClientBlocked

setCurrWeatherState

SET_CURR_WEATHER_STATE0x578C752848ECFA0C

The 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.

SignatureJavaScript
setCurrWeatherState(
  weatherType1: Hash,
  weatherType2: Hash,
  percentWeather2: number
): void
SignatureLua
setCurrWeatherState(
  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

Open in the interactive natives reference