setWindDirection
SET_WIND_DIRECTION0xEB0F4468467B4528The GTA V native SET_WIND_DIRECTION of the MISC namespace, as LS:MP client scripts call it: the global function setWindDirection, in JavaScript and in Lua.
setWindDirection(direction: number): voidsetWindDirection(direction: number)Usage
JavaScript
setWindDirection(direction);Lua
setWindDirection(direction)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
direction | float | number | number |
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.
The wind direction in radians
180 degrees (PI), wind will blow from the south. Setting this value to a negative number resumes the random wind direction changes provided by the game.
Reference
- Namespace
- Misc MISC
- In the game
void SET_WIND_DIRECTION(float direction)- Hash
0xEB0F4468467B4528