Skip to content

Configuration reference — CC Multicharacter

Two files, both readable after escrow:

Two files, both readable after escrow:

FileWho can read itWhat goes in it
config.luaevery player (it is sent to the client)looks, scenes, spawn points, creation lists, text
server/config.luathe server onlyslots, 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

KeyTypeDefaultEffect
brand.logostring''Path to your logo (e.g. 'web/brand/logo.png'). '' hides it
brand.namestring'Your City'City name on the loading screen and the select screen
brand.taglinestring'Roleplay'The line under the name
theme.accentCSS colour'#f0b429'Buttons, the selected ring, map pins
theme.accentInkCSS colour'#1a1206'Text drawn on the accent colour
theme.accentSoftCSS 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.

KeyTypeDefaultEffect
enabledbooleantrueOff = silence (also off when tracks is empty)
volume0..10.35Starting volume; each player's own choice is remembered
startMutedbooleanfalseStart muted
shufflebooleantrueRandom order
fadeInMs / fadeOutMsms2500 / 3000Fades at the start and when the player lands
trackslist{}{ file = 'web/music/x.mp3', title, artist, cover = 'web/music/x.jpg' }. Music you have the rights to

Config.Loading

KeyTypeDefaultEffect
slides.imageslist of paths{}Background slideshow ('web/scenes/loading-1.webp'). Empty = plain background
slides.msms12000Time per slide
slides.zoombooleantrueSlow zoom on each slide
tipMsms9000Time per tip
tipslist2 tips{ tag, title, text }
departmentslistPolice, EMSOn-duty badges: { id, label, icon, jobs = { 'police' } }
showPlayersbooleantruePlayers online / max
liveSecondsseconds10Counts refresh while the game loads (0 = frozen at connect)
restart.timeslist of 'HH:MM'{ '02:00', '14:00' }Next restart tile (server local time). {} hides it
linkstring''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) and spots: 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.

KeyTypeDefaultEffect
editorCoordsvec4airportWhere a new character stands while the clothing editor is open
sexeslistMale, Female{ id = 'm' or 'f', label }
height{ min, max, default } cm150 / 210 / 178The height slider (also checked server-side)
nationalitieslist of strings51 countriesThe nationality picker (also checked server-side)

Config.Spawn

KeyTypeDefaultEffect
lastLocationbooleantrueOffer "Last location" to returning characters
homesbooleantrueOffer homes from your housing resource
map.imagepath''Your image of the map. '' hides the map (the cards still work)
map.width / map.heightpx2048 / 3072The image's size
map.zoomnumber0.8How close the map sits
map.bounds{ minX, maxX, minY, maxY }GTA worldWorld coordinates the image covers
holdvec4DowntownWhere the ped waits hidden while the map is open
flight.*onThe camera flight from the city view down to the player (see the comments in config.lua). enabled = false = a plain fade
pointslist6 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 / homeImagepath''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.onDutyOnlybooleantrueOnly while on duty
jobSpawns.jobs{ [job] = point id }police → mission_row, ambulance → pillboxWhich card each job lands at

Ids last and anything starting home: are reserved.

Config.Select

KeyTypeDefaultEffect
favouritebooleantruePlayers can pin a character; the screen opens on it
startOn'last' / 'first''last'With no pin: the most recently played character, or slot 1
sceneTattoosbooleanfalseTattoos 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

KeyTypeDefaultEffect
baseinteger3Slots everyone has
maxinteger ≤ 88Hard ceiling whatever the rules below say
showLockedinteger1Locked "rank slot" tiles shown past what a player has
discord.enabledbooleanfalseExtra slots by Discord role (needs the bot token convar and the bot in your guild)
discord.guildstring''Your guild id
discord.roleslist{}{ id = 'role id', extra = 1, label = 'Supporter' }; the best one held wins
discord.cacheSecondsseconds300Role lookup cache (a failed lookup is not cached)
acelist{1..5}Which cc_multicharacter.slots.<n> ACE values are checked
identifiersmap{}Fixed extras: ['license:...'] = 2
purchasesbooleantrueBought slots (ccmc_addslots, the addSlots export) count
absoluteTablestring or nilnilAnother 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).

KeyTypeDefaultEffect
moneyMode'framework' / 'config''framework'Keep the framework's starting money, or use money
money{ cash, bank }500 / 5000Used when moneyMode = 'config'
oncePerSlotbooleantrueMoney once per character slot: delete + recreate does not pay again
itemslist{}{ item = 'phone', count = 1, metadata = 'idcard'? }
frameworkStarterbooleanfalseHand off to the framework's own starter kit instead (Qbox)
refilledSlotMetastring or nilnilMetadata 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.