getBlipCoords
GET_BLIP_COORDS0x586AFE3FF72D996EThe GTA V native GET_BLIP_COORDS of the HUD namespace, as LS:MP client scripts call it: the global function getBlipCoords, in JavaScript and in Lua.
getBlipCoords(blip: Blip): { x: number, y: number, z: number }getBlipCoords(blip: Blip): Vector3Usage
JavaScript
const { x, y, z } = getBlipCoords(blip);Lua
local coords = getBlipCoords(blip)
-- coords.x, coords.y, coords.zParameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
blip | Blip | number | integer |
Returns
Vector3 JavaScript { x: number, y: number, z: number }, Lua Vector3A 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
- HUD HUD
- In the game
Vector3 GET_BLIP_COORDS(Blip blip)- Hash
0x586AFE3FF72D996E