Configuration reference — CC Multicharacter
Two files, both readable after escrow:
Two files, both readable after escrow:
| File | Who can read it | What goes in it |
|---|---|---|
config.lua | every player (it is sent to the client) | looks, scenes, spawn points, creation lists, text |
server/config.lua | the server only | slots, starting money and items, name/age rules, deleting, buckets, the bot-token convar names |
Nothing in config.lua is an authority: the server re-checks everything a player sends against its own copy. Put anything that must stay secret in server/config.lua.
At start the server checks both files and prints one line per mistake ([cc_multicharacter] config:), then runs on a safe value. Fix the line it names and restart the resource.
Presets. A preset is a file in presets/ that adds a partial copy of Config to Config.Presets.. setr cc_multicharacter_preset "" merges it over config.lua (tables merge key by key; lists such as spawn points replace whole). Use one to keep your changes in a file an update never touches. Example: presets/example.lua.
config.lua
Config.Debug
boolean, default false. Extra F8 / console output.
Config.UI
| Key | Type | Default | Effect |
|---|---|---|---|
brand.logo | string | '' | Path to your logo (e.g. 'web/brand/logo.png'). '' hides it |
brand.name | string | 'Your City' | City name on the loading screen and the select screen |
brand.tagline | string | 'Roleplay' | The line under the name |
theme.accent | CSS colour | '#f0b429' | Buttons, the selected ring, map pins |
theme.accentInk | CSS colour | '#1a1206' | Text drawn on the accent colour |
theme.accentSoft | CSS colour | 'rgba(240,180,41,.14)' | Soft accent backgrounds |
Deeper restyling: web/ui/css/tokens.css (one block of CSS variables).
Config.Music
One player from the first loading bar until the player lands.
| Key | Type | Default | Effect |
|---|---|---|---|
enabled | boolean | true | Off = silence (also off when tracks is empty) |
volume | 0..1 | 0.35 | Starting volume; each player's own choice is remembered |
startMuted | boolean | false | Start muted |
shuffle | boolean | true | Random order |
fadeInMs / fadeOutMs | ms | 2500 / 3000 | Fades at the start and when the player lands |
tracks | list | {} | { file = 'web/music/x.mp3', title, artist, cover = 'web/music/x.jpg' }. Music you have the rights to |
Config.Loading
| Key | Type | Default | Effect |
|---|---|---|---|
slides.images | list of paths | {} | Background slideshow ('web/scenes/loading-1.webp'). Empty = plain background |
slides.ms | ms | 12000 | Time per slide |
slides.zoom | boolean | true | Slow zoom on each slide |
tipMs | ms | 9000 | Time per tip |
tips | list | 2 tips | { tag, title, text } |
departments | list | Police, EMS | On-duty badges: { id, label, icon, jobs = { 'police' } } |
showPlayers | boolean | true | Players online / max |
liveSeconds | seconds | 10 | Counts refresh while the game loads (0 = frozen at connect) |
restart.times | list of 'HH:MM' | { '02:00', '14:00' } | Next restart tile (server local time). {} hides it |
link | string | '' | A link tile, e.g. 'discord.gg/yourcity'. '' hides it |
Config.Scene, Config.Scenes, Config.Camera, Config.Activities, Config.JobActivities
The select screen shows every character standing at a spot doing something.
Config.Scene— the scene in use:'pier'(Del Perro Pier at night) or'rooftop'(Maze Bank helipad at dusk), or one you add.Config.Scenes.<name>—label,time = { hour, minute },weather,hold(vec4 where the player's own ped waits hidden),intro = { from = vec3, to = vec3, ms }(opening sweep) andspots: one per character slot,{ coords = vec4, cam = { coords = vec3, pointAt = vec3, fov }, allow = { activity names } }. Extra slots reuse the last spots. Build a spot in game: stand where the character should stand, look where the camera should look from, and run/ccmc_spot— it prints a ready-to-paste spot to F8.Config.Camera—glideMs(between characters, 900),pushMs(slow push-in after landing on one, 7000; 0 = off),pushFov(6.0),introMs(5000).Config.Activities.<name>—{ scenario = 'WORLD_HUMAN_...' }or{ dict, clip }.Config.JobActivities.<job>— activity names in order of preference for that job; the first one the spot allows is used, else a random allowed one.
Config.Creation
What the create form shows. The server enforces its own copy of the rules (see ServerConfig.Names and ServerConfig.Age), plus these lists.
| Key | Type | Default | Effect |
|---|---|---|---|
editorCoords | vec4 | airport | Where a new character stands while the clothing editor is open |
sexes | list | Male, Female | { id = 'm' or 'f', label } |
height | { min, max, default } cm | 150 / 210 / 178 | The height slider (also checked server-side) |
nationalities | list of strings | 51 countries | The nationality picker (also checked server-side) |
Config.Spawn
| Key | Type | Default | Effect |
|---|---|---|---|
lastLocation | boolean | true | Offer "Last location" to returning characters |
homes | boolean | true | Offer homes from your housing resource |
map.image | path | '' | Your image of the map. '' hides the map (the cards still work) |
map.width / map.height | px | 2048 / 3072 | The image's size |
map.zoom | number | 0.8 | How close the map sits |
map.bounds | { minX, maxX, minY, maxY } | GTA world | World coordinates the image covers |
hold | vec4 | Downtown | Where the ped waits hidden while the map is open |
flight.* | on | The camera flight from the city view down to the player (see the comments in config.lua). enabled = false = a plain fade | |
points | list | 6 vanilla spots | { id, label, description, mapLabel, image, coords = vec4, jobs = { 'police' }?, jobLabel?, lockReason?, newOnly? }. jobs locks a card to those jobs (it still shows, dimmed). newOnly shows it only to new characters |
lastImage / homeImage | path | '' | Card pictures for Last location and homes |
jobSpawns.mode | 'preselect' / 'auto' / 'off' | 'preselect' | On-duty jobs: their station card starts picked, or (auto) returning characters skip the map |
jobSpawns.onDutyOnly | boolean | true | Only while on duty |
jobSpawns.jobs | { [job] = point id } | police → mission_row, ambulance → pillbox | Which card each job lands at |
Ids last and anything starting home: are reserved.
Config.Select
| Key | Type | Default | Effect |
|---|---|---|---|
favourite | boolean | true | Players can pin a character; the screen opens on it |
startOn | 'last' / 'first' | 'last' | With no pin: the most recently played character, or slot 1 |
sceneTattoos | boolean | false | Tattoos on the scene peds. Leave off: several tattooed peds in one shot can exhaust the game's decoration pool and crash the client |
server/config.lua
ServerConfig.Slots
| Key | Type | Default | Effect |
|---|---|---|---|
base | integer | 3 | Slots everyone has |
max | integer ≤ 8 | 8 | Hard ceiling whatever the rules below say |
showLocked | integer | 1 | Locked "rank slot" tiles shown past what a player has |
discord.enabled | boolean | false | Extra slots by Discord role (needs the bot token convar and the bot in your guild) |
discord.guild | string | '' | Your guild id |
discord.roles | list | {} | { id = 'role id', extra = 1, label = 'Supporter' }; the best one held wins |
discord.cacheSeconds | seconds | 300 | Role lookup cache (a failed lookup is not cached) |
ace | list | {1..5} | Which cc_multicharacter.slots.<n> ACE values are checked |
identifiers | map | {} | Fixed extras: ['license:...'] = 2 |
purchases | boolean | true | Bought slots (ccmc_addslots, the addSlots export) count |
absoluteTable | string or nil | nil | Another resource's table of absolute totals (license, slots) to honour, e.g. 'tcc_character_slots' |
Total = base + the best of (Discord role, ACE, identifiers) + bought, capped at max.
ServerConfig.Starter
Granted once per character, on first landing, by server/grant.lua (the only place this resource gives anything).
| Key | Type | Default | Effect |
|---|---|---|---|
moneyMode | 'framework' / 'config' | 'framework' | Keep the framework's starting money, or use money |
money | { cash, bank } | 500 / 5000 | Used when moneyMode = 'config' |
oncePerSlot | boolean | true | Money once per character slot: delete + recreate does not pay again |
items | list | {} | { item = 'phone', count = 1, metadata = 'idcard'? } |
frameworkStarter | boolean | false | Hand off to the framework's own starter kit instead (Qbox) |
refilledSlotMeta | string or nil | nil | Metadata key set on a character whose slot was already paid |
ServerConfig.Names, ServerConfig.Age
Names.min/max (letters, 2/24), Names.unique (first + last unique server-wide, true), Names.banned (words refused anywhere in the name). Age.min/max (18/90).
ServerConfig.Delete
allowed (true), soft (true: hidden, restorable with ccmc_restore), restoreDays (7, then purged for good), cooldownHours (24, per account), minAgeDays (0).
ServerConfig.BucketBase
9000. While selecting, each player sits alone in bucket BucketBase + server id (chosen by the server, never the client). Change it only if another resource uses that range.
ServerConfig.Relog
enabled (true), cooldownSeconds (300). The command name is the replicated convar cc_multicharacter_relog_command ('' turns it off). Refused while dead or downed, cuffed or escorted, in a vehicle, or within 30 s of combat; your resources can refuse more with the beforeRelog hook.
ServerConfig.TokenConvars
Convar names read in order for the Discord bot token. Default { 'cc_multicharacter_bot_token' }. Set the token with set (never setr, which sends it to every player).
ServerConfig.Cooldowns
Per-player cooldowns in ms for the network events: select, create, delete, spawn, focus, music.