MiscClient

setWindDirection

SET_WIND_DIRECTION0xEB0F4468467B4528

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

SignatureJavaScript
setWindDirection(direction: number): void
SignatureLua
setWindDirection(direction: number)

Usage

JavaScript
setWindDirection(direction);
Lua
setWindDirection(direction)

Parameters

ParameterTypeJavaScriptLua
directionfloatnumbernumber

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

Open in the interactive natives reference