Installation
Install cc_jobcentre in five minutes, then the optional extras.
Five minutes for a working board; the adviser's model is optional and comes last.
1. Drop it in and start it
Put cc_jobcentre in your resources folder and add, in this order:
ensure oxmysql # optional
ensure cc_lib # 1.7.0 or newer
ensure cc_jobcentreOn the first boot the console prints one line that starts cc_jobcentre — 4.0.0 with the framework, the database, the preset and how many jobs are on the board. Read it: if it says CONFIG PROBLEM(S), the lines just above it name each one.
The database tables create and upgrade themselves. sql/install.sql is there if you would rather read the schema before it touches your database; importing it is optional.
2. Grant the ACEs
Paste install/ace.cfg into server.cfg:
add_ace group.admin cc_jobcentre.admin allow
add_ace group.admin cc_jobcentre.survey allow
add_ace group.admin cc_jobcentre.diagnostics allow
add_ace group.moderator cc_jobcentre.survey allow
add_ace group.moderator cc_jobcentre.diagnostics allow3. Check the board
/jobcentre_statusIt lists what is on the board, what is hidden and why, and which resources registered listings. A shipped listing is hidden until one of its job scripts is running — so if you do not run a bus job, there is no bus listing, which is the point.
If the board is empty, none of the job scripts the default board knows about is running. Add your own jobs to Config.Jobs (better: to a preset, step 5), or set Config.Board.hideUninstalled = false to show every listing anyway.
4. Put the office, and the pins, where they belong
The office ships on the north side of Legion Square, and every job at the vanilla start point its job script uses. To move one, stand where it should be and run:
/jobcentre_coords # prints a paste-ready vec3 and heading to F8
/jobcentre_goto taxi # takes you to a listing, to check it5. Make the board yours, in a preset
Copy presets/example.lua to presets/myserver.lua and presets/server/example.lua to presets/server/myserver.lua, change the name on the guard line of each, and set Config.Preset = 'myserver' in config.lua. Put your offices and listings in the first and their start-up costs in the second. An update then never touches your board.
6. Optional: the adviser's model
The adviser already answers from the board with no setup. For the questions the board cannot answer, it can ask a language model — capped at $0.05 a day by default:
# server.cfg, or a secrets.cfg you keep out of version control — `set`, NEVER `setr`
set cc_jobcentre_ai_key "sk-..."setr replicates to every connected player, so a key in a setr convar is a published key. ServerConfig.Adviser sets the endpoint (any OpenAI-compatible chat-completions URL), the model and every cap. To never use a model, set ServerConfig.Adviser.modelEnabled = false.
7. Optional: Discord logging
install/convars.cfg has the five set cc_jobcentre_webhook_* lines. An empty one is off.
8. Optional: Business tab and start-up loans
- Business tab: start Code Cartel
cc_business(2.x) beforecc_jobcentre. The tab appears by itself (Config.Integrations.business = 'auto'). - Start-up loans: off by default. Set
ServerConfig.Loans.enabled = true, add aServerConfig.Loans.jobsentry per job, and have that job's shop calldrawStartupLoan(see Exports and hooks). oxmysql is required.
Checking it works
- Walk to the office: the adviser is standing there and there is a briefcase blip.
- Target the adviser. The board opens on the Jobs board: a featured job and a tile per job.
- Click a tile, press Set waypoint on the job rail — your map marker moves. The City map tab shows every job as a pin.
- Open the Ask <name> tab and send "what can I start with no money". The answer is instant: it came from the board and cost nothing.
- Run
/jobcentre_selftest: it checks the ped, the blip, the target adapter, the inventory images, the page, and that every job coordinate is somewhere a person can stand. - Press Escape: the panel closes and the cursor is released.