HUDClient

addBlipForEntity

ADD_BLIP_FOR_ENTITY0x5CDE92C702A8FCE7

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

SignatureJavaScript
addBlipForEntity(entity: Entity): Blip
SignatureLua
addBlipForEntity(entity: Entity): Blip

Usage

JavaScript
const blip = addBlipForEntity(entity);
Lua
local blip = addBlipForEntity(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

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.

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

Open in the interactive natives reference