RM Custom Blips
Configuration
Configure rm-custom-blips, the /blips editor and permissions.
Configuration
Everything is in config.lua:
| Option | Default | Description |
|---|---|---|
Config.blipsShow | true | Turns all blips from this resource on or off. |
Config.shortRange | true | Database blips only show on the minimap when nearby (always on the pause map). |
Config.commandGroup | 'group.admin' | ACE group allowed to use /blips. |
Config.Locations | {} | Static blips defined in code instead of the editor. |
Config.Slots | 50 slots | Replaceable sprite ids, their place on the sheet and their dropdown label. |
Static blip example:
Config.Locations = {
{ coords = vec3(750.27, -1298.06, 36.16), sprite = 432, scale = 1.0, color = 50, label = 'Bowling' },
}Using the icons in your own scripts
Use the sprite id the same way as any vanilla blip:
local blip = AddBlipForCoord(-1212.7, -330.8, 37.8)
SetBlipSprite(blip, 381) -- custom Bank icon
SetBlipColour(blip, 2) -- greenMost shop, job and garage scripts have a sprite value in their config. Set it to the id of the icon you want.
Included icons
| Sprite | Icon | Sprite | Icon | Sprite | Icon |
|---|---|---|---|---|---|
| 381 | Bank | 107 | Gas station | 429 | Jewelry |
| 382 | Store | 113 | Recycling | 430 | Golf |
| 383 | Jobs | 181 | Vehicle rental | 432 | Bowling |
| 384 | Barber | 182 | Impound | 433 | Marketplace |
| 385 | Prospecting | 210 | Vehicle dealer | 388 | Security / vault |
| 386 | Windmills | 211 | Mechanic | 118 | Treasure |
| 387 | Smelting | 289 | Police | 183 | Pawnshop / vendor |
| 389 | Car wash | 290 | Tattoo | 208 | Tennis |
| 104 | Casino | 291 | Hospital | 209 | DMV / licenses |
| 105 | City hall | 420 | Clothing | 237 | Pharmacy |
| 238 | Hardware store | 293 | Gun store | 78 | Housing |
| 79 | Hunting | 473 | Warehouse |
The /blips editor
- Create blip here adds a blip at your position.
- Pick an existing blip to Edit, Move here, Set waypoint, Teleport to it or Delete it.
- Types:
Icon,Radius (circle)orArea (rectangle), with colour, scale, opacity, display mode, tick and outline.
Changes are saved to the database and sent to every online player at once.
Personal blips: a row in global_blips with a player license in the identifier column is only shown to that player.
Permissions
The ACE command.blips is given to Config.commandGroup. The server checks the same ACE before saving or deleting anything, so a modified client cannot edit blips. To let another group use the editor:
add_ace group.mod command.blips allowNotes
- Only the 50 slots can be changed. Each icon replaces an existing vanilla one.
- Other scripts that use these sprite ids also get the new icon.
- Only one resource can replace a blip sheet. If another resource (some HUD or minimap packs) replaces
blips_texturesheet_ngtoo, whichever starts last wins.