addBlipForEntity
ADD_BLIP_FOR_ENTITY0x5CDE92C702A8FCE7The GTA V native ADD_BLIP_FOR_ENTITY of the HUD namespace, as LS:MP client scripts call it: the global function addBlipForEntity, in JavaScript and in Lua.
addBlipForEntity(entity: Entity): BlipaddBlipForEntity(entity: Entity): BlipUsage
JavaScript
const blip = addBlipForEntity(entity);Lua
local blip = addBlipForEntity(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
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.
Returns red ( default ) blip attached to entity.
Example:
Blip blip; //Put this outside your case or option
blip = addBlipForEntity(YourPedOrBodyguardName);
setBlipAsFriendly(blip, true);Reference
- Namespace
- HUD HUD
- In the game
Blip ADD_BLIP_FOR_ENTITY(Entity entity)- Hash
0x5CDE92C702A8FCE7