Skip to content

cc_jobcentre: configuration reference

Two files, both shipped readable (outside escrow):

Two files, both shipped readable (outside escrow):

  • config.lua: public. Every client downloads it, so it holds nothing secret: offices, the job board, map, UI, features.
  • server/config.lua: server-only. Start-up costs, the adviser's provider and spend caps, cooldowns, distances, webhooks (read from convars), start-up loans.

Every key is also documented inline, with its type, default and effect, right above it. Config is checked at boot: a mistake prints a red line naming the entry and the field (Config.Jobs[3] (taxi): category "drivng" is not in Config.Categories) and the boot line ends with N CONFIG PROBLEM(S). The board still starts with whatever is valid.

config.lua

KeyTypeDefaultWhat it does
Config.DebugbooleanfalseHop probes for the adviser (page → client → server → handler) and draws the target zone. Leave off in production
Config.Presetstring'default'Picks a board from presets/<name>.lua (+ presets/server/<name>.lua for its costs). 'default' uses Config.Jobs below
Config.Locations[]arrayone office, Legion Square areaEach office: id, label, coords (vec3), heading, ped = { model, scenario }, blip = { sprite, color, scale, label }. Any number of branches
Config.Categories[]array4{ id, label, color }. color must be #rrggbb (anything else falls back to the accent)
Config.Jobs[]array6 generic listingsThe board. Fields: id, label, category, blurb, where, coords (vec3 or nil = no single address), applyVia (walk_in, hub, website, phone, radio), needs (strings or { text, item }), steps, tips, aliases (what the adviser answers to), icon, image (file in web/assets/jobs/), solo, provider (resource name or list), requiresResource
Config.Board.hideUninstalledbooleantrueHide a listing while none of its provider resources runs
Config.Registry.enabledbooleantrueAccept listings from other resources (registerJob)
Config.Registry.allowstring[]{}Only these resources may list jobs (empty = any)
Config.Registry.hidestring[]{}Job ids never to show, yours or registered
Config.Registry.fallbackCategorystring'handson'Where a registered listing with an unknown category goes
Config.Adviser.enabledbooleantrueThe Ask tab exists at all
Config.Adviser.name / .rolestring'Jordan' / 'Careers adviser'Shown on the tab and in answers
Config.Adviser.maxQuestionCharsnumber300Client-side cap; must not exceed the server's
Config.Adviser.greeting / .promptsstring / string[]First line and the suggested questions
Config.Features.blipsbooleantrueOffice map blip
Config.Features.pedsbooleantrueAdviser ped at the desk (the target zone stays without it)
Config.Features.soundsbooleantrueInterface sounds
Config.Features.waypointsbooleantrue"Set waypoint" buttons
Config.Features.itemIconsbooleantrueItem pictures on the "what you need" lines, from your inventory's image folder
Config.Features.persistencebooleantrueDatabase use (answer cache, spend ledger). Off = no oxmysql needed
Config.Features.balancebooleantrueCash + bank on the job rail ("Short by / Left after")
Config.Features.carriedbooleantrueTick the needed items the player already carries
Config.Featuredstring[]{ 'trucking', 'taxi', 'bus' }Jobs that take turns in the board's banner, one a day. {} hides it
Config.Integrations.business'auto'/true/false'auto'Business tab from Code Cartel's cc_business (open positions, applications, hiring)
Config.Target.icon / .distancestring / numberfa-solid fa-briefcase / 2.0Target option. No target resource = native [E] prompt
Config.Keybindstring or nilnilOpen the board anywhere with a key (no distance check, by design)
Config.Commandstring or nilnilSame, as a chat command
Config.UI.accent#rrggbb'#ff8a1f'The one runtime colour
Config.UI.theme'dark'/'light''dark'Starting theme; players can switch (remembered per PC)
Config.UI.themeSwitchbooleantrueShow the switch
Config.UI.headshotbooleantrueThe player's face in the header
Config.Map.imagestringassets/map/losantos.webpThe map picture, relative to web/
Config.Map.boundstablestock GTA VThe calibration: world X/Y at the image edges. Only change it with a different map image
Config.Map.panAreatablethe islandWhat a drag may show (keeps the sea out of view)
Config.Map.showPlayerbooleantrueThe "You" dot
Config.Map.maxZoomnumber4
Config.Ace.admin / .survey / .diagnosticsstringcc_jobcentre.*ACE names for the admin commands

server/config.lua

KeyTypeDefaultWhat it does
ServerConfig.Costs[jobId]tableone per listing{ startup, note, reviewed }: what it costs to get started, a note, the date you last checked it. No wage fields, by design
ServerConfig.Adviser.modelEnabledbooleantrueAllow the paid model fallback (still needs a key)
.endpoint / .modelstringDeepSeek chat completions / deepseek-flashAny OpenAI-compatible chat endpoint
.apiKeyConvarstringcc_jobcentre_ai_keyThe convar that holds the key (set, never setr)
.maxOutputTokens / .temperature / .timeoutMsnumber220 / 0.2 / 12000
.priceInputPerMillion etc.numberprovider list pricesFor the spend ledger
.dailyUsdCapnumber0.05Hard daily spend cap; reserved before each call
.perPlayerCooldownMsnumber6000Between one player's questions
.perPlayerModelHourly / .globalModelHourlynumber12 / 90Paid answers per hour
.cacheHoursnumber168How long one answer serves everyone
.vocabularytable{}Extra words the free desk understands (other languages)
ServerConfig.Limits.historyMessages / .modelHistorynumber12 / 2Chat turns kept / sent to the model
ServerConfig.Cooldowns.openUi / .askFloorms500 / 750Gate floors
ServerConfig.MaxInteractDistance.officemetres5.0Server-side distance tolerance at the desk
ServerConfig.Webhooks.*convarsemptycc_jobcentre_webhook_default/adviser/security/admin/board
ServerConfig.LogQuestionTextbooleantruefalse keeps question and answer text out of Discord
ServerConfig.Loans.enabledbooleanfalseStart-up loans (see README → Start-up loans)
ServerConfig.Loans.share0-10.25Share of each payout taken back until repaid
ServerConfig.Loans.offerMinutesnumber120An unused offer lapses
ServerConfig.Loans.jobs[jobId]table{}{ amount, item, provider, earnings, earningsPattern }

Convars

See install/convars.cfg. cc_jobcentre_locale is setr (the client renders text); the key and every webhook are set.

Presets

presets/example.lua is a commented template. Copy it to presets/myserver.lua, set Config.Preset = 'myserver', and your board lives outside config.lua, so an update never touches it.