HUDClient

getBlipInfoIdCoord

GET_BLIP_INFO_ID_COORD0xFA7C7F0AADF25D09

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

SignatureJavaScript
getBlipInfoIdCoord(blip: Blip): { x: number, y: number, z: number }
SignatureLua
getBlipInfoIdCoord(blip: Blip): Vector3

Usage

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

Parameters

ParameterTypeJavaScriptLua
blipBlipnumberinteger

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
HUD HUD
In the game
Vector3 GET_BLIP_INFO_ID_COORD(Blip blip)
Hash
0xFA7C7F0AADF25D09

Open in the interactive natives reference