HUDClient

getClosestBlipInfoId

GET_CLOSEST_BLIP_INFO_ID0xD484BF71050CA1EE

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

SignatureJavaScript
getClosestBlipInfoId(blipSprite: number): Blip
SignatureLua
getClosestBlipInfoId(blipSprite: integer): Blip

Usage

JavaScript
const blip = getClosestBlipInfoId(blipSprite);
Lua
local blip = getClosestBlipInfoId(blipSprite)

Parameters

ParameterTypeJavaScriptLua
blipSpriteintnumberinteger

Returns

Blip JavaScript number, Lua integer

Handle of a map blip.

Reference

Namespace
HUD HUD
In the game
Blip GET_CLOSEST_BLIP_INFO_ID(int blipSprite)
Hash
0xD484BF71050CA1EE
Introduced
Game build 1180 legacy numbering
Formerly
_GET_CLOSEST_BLIP_OF_TYPE

Open in the interactive natives reference