setOverrideWeatherex
SET_OVERRIDE_WEATHEREX0x1178E104409FE58CThe 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.
setOverrideWeatherex(weatherType: string, p1: boolean): voidsetOverrideWeatherex(weatherType: string, p1: boolean)Usage
JavaScript
setOverrideWeatherex(weatherType, p1);Lua
setOverrideWeatherex(weatherType, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
weatherType | string | string | string |
p1 | BOOL | boolean | boolean |
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