setBlipCategory
SET_BLIP_CATEGORY0x234CDD44D996FD9AThe GTA V native SET_BLIP_CATEGORY of the HUD namespace, as LS:MP client scripts call it: the global function setBlipCategory, in JavaScript and in Lua.
setBlipCategory(blip: Blip, index: number): voidsetBlipCategory(blip: Blip, index: integer)Usage
setBlipCategory(blip, index);setBlipCategory(blip, index)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
blip | Blip | number | integer |
index | int | number | integer |
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.
Index:
1 = No distance shown in legend
2 = Distance shown in legend
7 = "Other Players" category, also shows distance in legend
10 = "Property" category
11 = "Owned Property" category
Any other value behaves like index = 1, index wraps around after 255
Blips with categories 7, 10 or 11 will all show under the specific categories listing in the map legend, regardless of sprite or name.
Legend entries:
7 = Other Players (BLIP_OTHPLYR)
10 = Property (BLIP_PROPCAT)
11 = Owned Property (BLIP_APARTCAT)
Category needs to be 7 in order for blip names to show on the expanded minimap when using displayPlayerNameTagsOnBlips.
Reference
- Namespace
- HUD HUD
- In the game
void SET_BLIP_CATEGORY(Blip blip, int index)- Hash
0x234CDD44D996FD9A