HUDClient

setBlipDisplay

SET_BLIP_DISPLAY0x9029B2F3DA924928

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

SignatureJavaScript
setBlipDisplay(blip: Blip, displayId: number): void
SignatureLua
setBlipDisplay(blip: Blip, displayId: integer)

Usage

JavaScript
setBlipDisplay(blip, displayId);
Lua
setBlipDisplay(blip, displayId)

Parameters

ParameterTypeJavaScriptLua
blipBlipnumberinteger
displayIdintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

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

Display Id behaviours:
0 = Doesn't show up, ever, anywhere.
1 = Doesn't show up, ever, anywhere.
2 = Shows on both main map and minimap. (Selectable on map)
3 = Shows on main map only. (Selectable on map)
4 = Shows on main map only. (Selectable on map)
5 = Shows on minimap only.
6 = Shows on both main map and minimap. (Selectable on map)
7 = Doesn't show up, ever, anywhere.
8 = Shows on both main map and minimap. (Not selectable on map)
9 = Shows on minimap only.
10 = Shows on both main map and minimap. (Not selectable on map)

Anything higher than 10 seems to be exactly the same as 10.

Reference

Namespace
HUD HUD
In the game
void SET_BLIP_DISPLAY(Blip blip, int displayId)
Hash
0x9029B2F3DA924928

Open in the interactive natives reference