HUDClient

getBlipInfoIdEntityIndex

GET_BLIP_INFO_ID_ENTITY_INDEX0x4BA4E2553AFEDC2C

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

SignatureJavaScript
getBlipInfoIdEntityIndex(blip: Blip): Entity
SignatureLua
getBlipInfoIdEntityIndex(blip: Blip): Entity

Usage

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

Parameters

ParameterTypeJavaScriptLua
blipBlipnumberinteger

Returns

Entity JavaScript number, Lua integer

Game handle of an entity: a ped, a vehicle or an object. Not an LS:MP netId. Convert one with lsmp.getEntityFromNetId.

Reference

Namespace
HUD HUD
In the game
Entity GET_BLIP_INFO_ID_ENTITY_INDEX(Blip blip)
Hash
0x4BA4E2553AFEDC2C

Open in the interactive natives reference