HUDClient

getAiPedPedBlipIndex

GET_AI_PED_PED_BLIP_INDEX0x7CD934010E115C2C

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

SignatureJavaScript
getAiPedPedBlipIndex(ped: Ped): Blip
SignatureLua
getAiPedPedBlipIndex(ped: Ped): Blip

Usage

JavaScript
const blip = getAiPedPedBlipIndex(ped);
Lua
local blip = getAiPedPedBlipIndex(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

Blip JavaScript number, Lua integer

Handle of a map blip.

Reference

Namespace
HUD HUD
In the game
Blip GET_AI_PED_PED_BLIP_INDEX(Ped ped)
Hash
0x7CD934010E115C2C
Formerly
_GET_AI_BLIP_2

Open in the interactive natives reference