Skip to content

Commit 1e905a6

Browse files
authored
tweak(SetBlipCategory): document Cfx behavior (#1250)
1 parent 1349004 commit 1e905a6

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

HUD/SetBlipCategory.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ Examples result:
2020
7 = "Other Players" category, also shows distance in legend
2121
10 = "Property" category
2222
11 = "Owned Property" category
23+
12 - 133 = Custom named categories
24+
134 - 254 = Custom unnamed categories
2325
```
24-
Any other value behaves like `index = 1`, `index` wraps around after 255
26+
`index` wraps around after 255.
2527
26-
Blips with categories `7`, `10` or `11` will all show under the specific categories listing in the map legend, regardless of sprite or name.
28+
Blips with categories `7`, `10`, `11` or `12 - 254` (custom categories) will all show under the specific categories listing in the map legend, regardless of sprite or name.
2729
2830
2931
**Legend entries**
@@ -33,6 +35,8 @@ Blips with categories `7`, `10` or `11` will all show under the specific categor
3335
| 7 | Other Players | `BLIP_OTHPLYR` |
3436
| 10 | Property | `BLIP_PROPCAT` |
3537
| 11 | Owned Property | `BLIP_APARTCAT` |
38+
| 12 - 133 | Custom categories (Named) | `BLIP_CAT_` + `index` |
39+
| 134 - 254 | Custom categories (Unnamed) | `-` |
3640
3741
3842
## Parameters
@@ -52,5 +56,11 @@ SetBlipCategory(blip, 10)
5256
blip = AddBlipForCoord(-927.92755126953, -2824.1362304688, 13.947744369507)
5357
SetBlipSprite(blip, 372) -- Hangar For Sale
5458
SetBlipCategory(blip, 10)
59+
60+
-- Custom named categories
61+
blip = AddBlipForCoord(0.0, 0.0, 0.0)
62+
SetBlipSprite(blip, 375) -- Business For Sale
63+
SetBlipCategory(blip, 12)
64+
AddTextEntry("BLIP_CAT_" .. 12, "Businesses For Sale")
5565
```
5666

0 commit comments

Comments
 (0)