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
| Key | Type | Default | What it does |
|---|---|---|---|
Config.Debug | boolean | false | Hop probes for the adviser (page → client → server → handler) and draws the target zone. Leave off in production |
Config.Preset | string | 'default' | Picks a board from presets/<name>.lua (+ presets/server/<name>.lua for its costs). 'default' uses Config.Jobs below |
Config.Locations[] | array | one office, Legion Square area | Each office: id, label, coords (vec3), heading, ped = { model, scenario }, blip = { sprite, color, scale, label }. Any number of branches |
Config.Categories[] | array | 4 | { id, label, color }. color must be #rrggbb (anything else falls back to the accent) |
Config.Jobs[] | array | 6 generic listings | The 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.hideUninstalled | boolean | true | Hide a listing while none of its provider resources runs |
Config.Registry.enabled | boolean | true | Accept listings from other resources (registerJob) |
Config.Registry.allow | string[] | {} | Only these resources may list jobs (empty = any) |
Config.Registry.hide | string[] | {} | Job ids never to show, yours or registered |
Config.Registry.fallbackCategory | string | 'handson' | Where a registered listing with an unknown category goes |
Config.Adviser.enabled | boolean | true | The Ask tab exists at all |
Config.Adviser.name / .role | string | 'Jordan' / 'Careers adviser' | Shown on the tab and in answers |
Config.Adviser.maxQuestionChars | number | 300 | Client-side cap; must not exceed the server's |
Config.Adviser.greeting / .prompts | string / string[] | First line and the suggested questions | |
Config.Features.blips | boolean | true | Office map blip |
Config.Features.peds | boolean | true | Adviser ped at the desk (the target zone stays without it) |
Config.Features.sounds | boolean | true | Interface sounds |
Config.Features.waypoints | boolean | true | "Set waypoint" buttons |
Config.Features.itemIcons | boolean | true | Item pictures on the "what you need" lines, from your inventory's image folder |
Config.Features.persistence | boolean | true | Database use (answer cache, spend ledger). Off = no oxmysql needed |
Config.Features.balance | boolean | true | Cash + bank on the job rail ("Short by / Left after") |
Config.Features.carried | boolean | true | Tick the needed items the player already carries |
Config.Featured | string[] | { '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 / .distance | string / number | fa-solid fa-briefcase / 2.0 | Target option. No target resource = native [E] prompt |
Config.Keybind | string or nil | nil | Open the board anywhere with a key (no distance check, by design) |
Config.Command | string or nil | nil | Same, 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.themeSwitch | boolean | true | Show the switch |
Config.UI.headshot | boolean | true | The player's face in the header |
Config.Map.image | string | assets/map/losantos.webp | The map picture, relative to web/ |
Config.Map.bounds | table | stock GTA V | The calibration: world X/Y at the image edges. Only change it with a different map image |
Config.Map.panArea | table | the island | What a drag may show (keeps the sea out of view) |
Config.Map.showPlayer | boolean | true | The "You" dot |
Config.Map.maxZoom | number | 4 | |
Config.Ace.admin / .survey / .diagnostics | string | cc_jobcentre.* | ACE names for the admin commands |
server/config.lua
| Key | Type | Default | What it does |
|---|---|---|---|
ServerConfig.Costs[jobId] | table | one 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.modelEnabled | boolean | true | Allow the paid model fallback (still needs a key) |
.endpoint / .model | string | DeepSeek chat completions / deepseek-flash | Any OpenAI-compatible chat endpoint |
.apiKeyConvar | string | cc_jobcentre_ai_key | The convar that holds the key (set, never setr) |
.maxOutputTokens / .temperature / .timeoutMs | number | 220 / 0.2 / 12000 | |
.priceInputPerMillion etc. | number | provider list prices | For the spend ledger |
.dailyUsdCap | number | 0.05 | Hard daily spend cap; reserved before each call |
.perPlayerCooldownMs | number | 6000 | Between one player's questions |
.perPlayerModelHourly / .globalModelHourly | number | 12 / 90 | Paid answers per hour |
.cacheHours | number | 168 | How long one answer serves everyone |
.vocabulary | table | {} | Extra words the free desk understands (other languages) |
ServerConfig.Limits.historyMessages / .modelHistory | number | 12 / 2 | Chat turns kept / sent to the model |
ServerConfig.Cooldowns.openUi / .askFloor | ms | 500 / 750 | Gate floors |
ServerConfig.MaxInteractDistance.office | metres | 5.0 | Server-side distance tolerance at the desk |
ServerConfig.Webhooks.* | convars | empty | cc_jobcentre_webhook_default/adviser/security/admin/board |
ServerConfig.LogQuestionText | boolean | true | false keeps question and answer text out of Discord |
ServerConfig.Loans.enabled | boolean | false | Start-up loans (see README → Start-up loans) |
ServerConfig.Loans.share | 0-1 | 0.25 | Share of each payout taken back until repaid |
ServerConfig.Loans.offerMinutes | number | 120 | An 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.