HUDClient

getBlipInfoIdPickupIndex

GET_BLIP_INFO_ID_PICKUP_INDEX0x9B6786E4C03DD382

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

SignatureJavaScript
getBlipInfoIdPickupIndex(blip: Blip): Pickup
SignatureLua
getBlipInfoIdPickupIndex(blip: Blip): Pickup

Usage

JavaScript
const pickup = getBlipInfoIdPickupIndex(blip);
Lua
local pickup = getBlipInfoIdPickupIndex(blip)

Parameters

ParameterTypeJavaScriptLua
blipBlipnumberinteger

Returns

Pickup JavaScript number, Lua integer

Handle of a pickup.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

This function is hard-coded to always return 0.

Reference

Namespace
HUD HUD
In the game
Pickup GET_BLIP_INFO_ID_PICKUP_INDEX(Blip blip)
Hash
0x9B6786E4C03DD382

Open in the interactive natives reference