Skip to content

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

KeyTypeDefaultEffect
Config.Localestring'en'Language file in locales/. Shipped: en, de, fr. Missing keys fall back to English.
Config.DebugbooleanfalsePrint each blip themed, and the boot summary, in F8.
Config.EnabledbooleantrueMaster switch. false loads the resource but never touches a blip.

Look

KeyTypeDefaultEffect
Config.Presetstring'soft'The preset the server starts with. An admin's /blipsadmin preset wins until preset reset.
Config.PaletteOverridestable{}family → 0xRRGGBBAA, applied on top of any preset.
Config.Scalefalse / numberfalseSize of every themed blip, 0.3–2.0. false = the preset's.
Config.Alphafalse / integerfalseOpacity 0–255 for themed blips. false = the preset's. Only fully opaque blips are faded.
Config.FamiliestableGTA colours mappedGTA 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.

FieldTypeEffect
familystringUse this family whatever colour the blip's script set.
colourcolourExact colour; wins over family.
scalenumber 0.3–2.0Size for this icon.
alphainteger 0–255Opacity for this icon (opaque blips only).
shortRangebooleantrue = only near on the minimap, false = always shown. Leave out to keep the script's choice.
skipbooleanNever touch this icon.
labelstringYour 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

KeyTypeDefaultEffect
Config.BlipKinds.coordbooleantrueStatic places (AddBlipForCoord).
Config.BlipKinds.vehiclebooleanfalseBlips on vehicles.
Config.BlipKinds.pedbooleanfalseBlips on peds — includes other players (police / gang trackers).
Config.BlipKinds.objectbooleanfalseBlips on objects.
Config.BlipKinds.pickupbooleanfalsePickup blips.
Config.SkipFlashingbooleantrueLeave flashing blips (dispatch alerts) alone.
Config.SkipGpsRoutebooleantrueLeave GPS-routed blips (a job target) alone.

Restore

When the theme is removed (resource stop, /blipstyle off, /blipsadmin off, ExcludeBlip):

KeyTypeDefaultEffect
Config.Restore.colourbooleantruePut back the colour the blip's script set.
Config.Restore.alphabooleantruePut back the opacity, if cc_blips faded it.
Config.Restore.scalefalse / numberfalseGTA cannot read a blip's size back, so the original cannot be restored. A number resets every themed blip to that size.

Performance

KeyTypeDefaultEffect
Config.Intervalnumber ≥ 2501000Ms between passes.
Config.FullScanMsnumber ≥ 500030000Ms between full sprite scans (new icon types). Between them only icons already on the map are walked.
Config.MaxSpriteinteger 100–40001000Highest sprite id walked. Raise only for streamed custom sprites above 1000.
Config.SpritesPerFrameinteger 25–500100Sprite ids walked per frame during a full scan.

Commands

KeyDefaultEffect
Config.PlayerToggle.enabledtrueAllow players to turn the theme off for themselves.
Config.PlayerToggle.command'blipstyle'Its name.
Config.Admin.enabledtrueRegister 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:

lua
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.