MiscClient

getWindDirection

GET_WIND_DIRECTION0x1F400FEF721170DA

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

SignatureJavaScript
getWindDirection(): { x: number, y: number, z: number }
SignatureLua
getWindDirection(): Vector3

Usage

JavaScript
const { x, y, z } = getWindDirection();
Lua
local coords = getWindDirection()
-- coords.x, coords.y, coords.z

Parameters

None.

Returns

Vector3 JavaScript { x: number, y: number, z: number }, Lua Vector3

A 3D vector. JavaScript gets a plain { x, y, z } object; Lua gets a real Vector3, with .x .y .z and arithmetic. As an argument, one vector fills three consecutive coordinates.

Reference

Namespace
Misc MISC
In the game
Vector3 GET_WIND_DIRECTION()
Hash
0x1F400FEF721170DA

Open in the interactive natives reference