Configuration reference
Everything lives in config.lua (open, escrow-ignored). The config is checked at start: a bad entry is printed as [cc_blips] config error: ... and ignored or reset to its default, so the resource alway
Everything lives in config.lua (open, escrow-ignored). The config is checked at start: a bad entry is printed as [cc_blips] config error: ... and ignored or reset to its default, so the resource always runs.
General
| Key | Type | Default | Effect |
|---|---|---|---|
Config.Locale | string | 'en' | Language file in locales/. Shipped: en, de, fr. Missing keys fall back to English. |
Config.Debug | boolean | false | Print each blip themed, and the boot summary, in F8. |
Config.Enabled | boolean | true | Master switch. false loads the resource but never touches a blip. |
Look
| Key | Type | Default | Effect |
|---|---|---|---|
Config.Preset | string | 'soft' | The preset the server starts with. An admin's /blipsadmin preset wins until preset reset. |
Config.PaletteOverrides | table | {} | family → 0xRRGGBBAA, applied on top of any preset. |
Config.Scale | false / number | false | Size of every themed blip, 0.3–2.0. false = the preset's. |
Config.Alpha | false / integer | false | Opacity 0–255 for themed blips. false = the preset's. Only fully opaque blips are faded. |
Config.Families | table | GTA colours mapped | GTA colour index 0–85 → family. Decides which family a blip belongs to. Unlisted colours get the preset's default. |
Families
Every palette has nine: stone, red, orange, gold, green, teal, blue, purple, pink. A blip's own GTA colour picks its family through Config.Families, so its meaning survives: police blue stays blue, hospital red stays red.
Colours
0xRRGGBBAA with the alpha byte FF (opacity is alpha, not the colour), e.g. 0xF8D15CFF. GTA colour indexes 0–85 also work (the Classic preset uses them).
Per-icon rules
Config.Sprites[spriteId] = { ... }. Every field is optional.
| Field | Type | Effect |
|---|---|---|
family | string | Use this family whatever colour the blip's script set. |
colour | colour | Exact colour; wins over family. |
scale | number 0.3–2.0 | Size for this icon. |
alpha | integer 0–255 | Opacity for this icon (opaque blips only). |
shortRange | boolean | true = only near on the minimap, false = always shown. Leave out to keep the script's choice. |
skip | boolean | Never touch this icon. |
label | string | Your own note. Not used. |
Rules from Config.Sprites win over the preset's own sprites; runtime rules from the SetSpriteRule export win over both.
Config.SkipSprites[spriteId] = true — icons never touched (shipped: waypoint 8 and radius markers 9, 161, 162).
Sprite ids: . With Config.Debug = true every themed blip is printed in F8 with its sprite and colour.
Which blips
| Key | Type | Default | Effect |
|---|---|---|---|
Config.BlipKinds.coord | boolean | true | Static places (AddBlipForCoord). |
Config.BlipKinds.vehicle | boolean | false | Blips on vehicles. |
Config.BlipKinds.ped | boolean | false | Blips on peds — includes other players (police / gang trackers). |
Config.BlipKinds.object | boolean | false | Blips on objects. |
Config.BlipKinds.pickup | boolean | false | Pickup blips. |
Config.SkipFlashing | boolean | true | Leave flashing blips (dispatch alerts) alone. |
Config.SkipGpsRoute | boolean | true | Leave GPS-routed blips (a job target) alone. |
Restore
When the theme is removed (resource stop, /blipstyle off, /blipsadmin off, ExcludeBlip):
| Key | Type | Default | Effect |
|---|---|---|---|
Config.Restore.colour | boolean | true | Put back the colour the blip's script set. |
Config.Restore.alpha | boolean | true | Put back the opacity, if cc_blips faded it. |
Config.Restore.scale | false / number | false | GTA cannot read a blip's size back, so the original cannot be restored. A number resets every themed blip to that size. |
Performance
| Key | Type | Default | Effect |
|---|---|---|---|
Config.Interval | number ≥ 250 | 1000 | Ms between passes. |
Config.FullScanMs | number ≥ 5000 | 30000 | Ms between full sprite scans (new icon types). Between them only icons already on the map are walked. |
Config.MaxSprite | integer 100–4000 | 1000 | Highest sprite id walked. Raise only for streamed custom sprites above 1000. |
Config.SpritesPerFrame | integer 25–500 | 100 | Sprite ids walked per frame during a full scan. |
Commands
| Key | Default | Effect |
|---|---|---|
Config.PlayerToggle.enabled | true | Allow players to turn the theme off for themselves. |
Config.PlayerToggle.command | 'blipstyle' | Its name. |
Config.Admin.enabled | true | Register the admin command. |
Config.Admin.command | 'blipsadmin' | Its name. |
Config.Admin.ace | 'cc_blips.admin' | The ACE permission it checks. |
Presets
Presets live in presets/palettes.lua (open). Add one by copying a block and renaming it:
CCBlipsPresets.night = {
label = 'Night (deep tones)',
palette = {
stone = 0xC9C6BFFF, red = 0xC24B43FF, orange = 0xC97A35FF, gold = 0xC9A640FF,
green = 0x5DAE58FF, teal = 0x46AFA8FF, blue = 0x4F88C9FF, purple = 0x8E6BC9FF,
pink = 0xC96B98FF,
},
default = 'gold', -- family for an unmapped colour
scale = 0.65, -- 0.3-2.0
alpha = 255, -- 0-255
keepColours = false, -- true = never recolour (size and rules only)
sprites = { -- optional; Config.Sprites wins
[361] = { family = 'red' },
},
}Then Config.Preset = 'night', or /blipsadmin preset night live. A preset missing any of the nine families is rejected at start with a console error.