MiscClient

setOverrideWeatherex

SET_OVERRIDE_WEATHEREX0x1178E104409FE58C

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

SignatureJavaScript
setOverrideWeatherex(weatherType: string, p1: boolean): void
SignatureLua
setOverrideWeatherex(weatherType: string, p1: boolean)

Usage

JavaScript
setOverrideWeatherex(weatherType, p1);
Lua
setOverrideWeatherex(weatherType, p1)

Parameters

ParameterTypeJavaScriptLua
weatherTypestringstringstring
p1BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Identical to setOverrideWeather but has an additional BOOL param that sets some weather var to 0 if true

Reference

Namespace
Misc MISC
In the game
void SET_OVERRIDE_WEATHEREX(const char* weatherType, BOOL p1)
Hash
0x1178E104409FE58C
Introduced
Game build 2189 legacy numbering

Open in the interactive natives reference