getBlipInfoIdCoord
GET_BLIP_INFO_ID_COORD0xFA7C7F0AADF25D09The GTA V native GET_BLIP_INFO_ID_COORD of the HUD namespace, as LS:MP client scripts call it: the global function getBlipInfoIdCoord, in JavaScript and in Lua.
getBlipInfoIdCoord(blip: Blip): { x: number, y: number, z: number }getBlipInfoIdCoord(blip: Blip): Vector3Usage
JavaScript
const { x, y, z } = getBlipInfoIdCoord(blip);Lua
local coords = getBlipInfoIdCoord(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_INFO_ID_COORD(Blip blip)- Hash
0xFA7C7F0AADF25D09