HUDClient

addBlipForCoord

ADD_BLIP_FOR_COORD0x5A039BB0BCA604B6

The GTA V native ADD_BLIP_FOR_COORD of the HUD namespace, as LS:MP client scripts call it: the global function addBlipForCoord, in JavaScript and in Lua.

SignatureJavaScript
addBlipForCoord(x: number, y: number, z: number): Blip
SignatureLua
addBlipForCoord(x: number, y: number, z: number): Blip

Usage

JavaScript
const blip = addBlipForCoord(x, y, z);
Lua
local blip = addBlipForCoord(x, y, z)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
const blip = addBlipForCoord(pos);
Lua · with vectors
local blip = addBlipForCoord(pos)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber

Returns

Blip JavaScript number, Lua integer

Handle of a map blip.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Creates an orange ( default ) Blip-object. Returns a Blip-object which can then be modified.

Reference

Namespace
HUD HUD
In the game
Blip ADD_BLIP_FOR_COORD(float x, float y, float z)
Hash
0x5A039BB0BCA604B6

Open in the interactive natives reference