addBlipForCoord
ADD_BLIP_FOR_COORD0x5A039BB0BCA604B6The 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.
addBlipForCoord(x: number, y: number, z: number): BlipaddBlipForCoord(x: number, y: number, z: number): BlipUsage
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
x | float | number | number |
y | float | number | number |
z | float | number | number |
Returns
Blip JavaScript number, Lua integerHandle 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