STUDIO ATLEAST
RM Custom Blips

Configuration

Configure rm-custom-blips, the /blips editor and permissions.

Configuration

Everything is in config.lua:

OptionDefaultDescription
Config.blipsShowtrueTurns all blips from this resource on or off.
Config.shortRangetrueDatabase 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.Slots50 slotsReplaceable 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)     -- green

Most shop, job and garage scripts have a sprite value in their config. Set it to the id of the icon you want.

Included icons

SpriteIconSpriteIconSpriteIcon
381Bank107Gas station429Jewelry
382Store113Recycling430Golf
383Jobs181Vehicle rental432Bowling
384Barber182Impound433Marketplace
385Prospecting210Vehicle dealer388Security / vault
386Windmills211Mechanic118Treasure
387Smelting289Police183Pawnshop / vendor
389Car wash290Tattoo208Tennis
104Casino291Hospital209DMV / licenses
105City hall420Clothing237Pharmacy
238Hardware store293Gun store78Housing
79Hunting473Warehouse

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) or Area (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 allow

Notes

  • 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_ng too, whichever starts last wins.