Skip to content

cc_tradie troubleshooting

Start here: read the server console from the line cc_tradie ... started upward. cc_tradie names every problem it finds, with the key or file to fix. F8 (the client console) shows the client side.

Start here: read the server console from the line cc_tradie ... started upward. cc_tradie names every problem it finds, with the key or file to fix. F8 (the client console) shows the client side.

Server console

You seeCauseFix
Could not find dependency cc_lib / cc_lib is not startedcc_lib missing or started after cc_tradieput ensure cc_lib above ensure cc_tradie in server.cfg
Could not find dependency oxmysqloxmysql missinginstall oxmysql and ensure oxmysql above cc_tradie
attempt to index a nil value (global 'MySQL')oxmysql started after cc_tradiemove ensure oxmysql up
cc_tradie: these items are not defined in your inventory: ...the items in ServerConfig.Items do not existadd them from install/items/, or rename the values in ServerConfig.Items to items you have
cc_tradie ...: CONFIG BROKEN (N problem(s) above)an essential config value is unusablethe N lines above name each key; fix and restart. Every action is refused until then
cc_tradie config: ... warning linesa typo or bad value; a default was usedfix the named key; the job works meanwhile
cc_tradie: grant for unknown item key ...a find or shop row uses a key missing from ServerConfig.Itemsadd the key to ServerConfig.Items
cc_tradie: REFUND FAILED ...a purchase failed and the money could not be returnedrare: the framework refused the payment. Pay the player back by hand; the line has the amount
cc_tradie: custom/server.lua <name> errored: ...your own code in custom/server.luafix the line it names; cc_tradie keeps running
cc_lib: no such module '...'cc_lib is older than cc_tradie needsupdate cc_lib to 1.7.0 or newer
This resource requires escrow / You lack the required entitlementthe asset is not linked to your Cfx.re account, or the folder was renameddownload it again from your Keymaster portal; keep the folder name cc_tradie
Failed to load script ... syntax error in a config filea missing comma or quote in your editthe message names the file and line

In game

You seeCauseFix
No depot blip, no foremanthe resource did not start (see the console), or Config.Depot.blip.enabled = falsecheck ensure cc_tradie and the console
The foreman has no target optionno target resource is runningwalk up and press E; or install ox_target / qb-target
"Your work profile could not be loaded"the database is not readyoxmysql not started, wrong connection string, or started after cc_tradie
"The tradie job is misconfigured" on every actionCONFIG BROKEN at startsee the server console
"Buy a jackhammer at the depot first"Config.Features.jackhammer is on and the worker has nonebuy one in the tool shop on the board, or set the feature off for a loaner
"Every truck bay is blocked"something is parked on Config.Depot.truck.baysclear the bays or add another vec4 bay
No keys to the truckyour keys resource has no API cc_lib can call (esx_vehiclelock / esx_carlock), or it is not detectedforce it in cc_lib (Config.Bridge.keys); see COMPATIBILITY
"Drill inside your contract's site" while standing in itthe site's minZ / maxZ do not cover the ground thereset Config.Debug = true, look at the outline, widen minZ / maxZ
"This ground is already broken"the spot is within Config.Drilling.spotSpacing of a recent hole (yours or your crew's)move a few metres
"Drill the hole properly" / holes refusedthe gauge finished faster than it can fill (a mod, a macro or heavy lag)normal players never see it; the floor is ServerConfig.Drilling.minMs / minFillFactor
Wages stop comingthe worker hit ServerConfig.CashCap.perWindow for the hourby design; raise it or set perWindow = 0 to turn the cap off
No more materials from holesServerConfig.ItemCap.itemsPerWindow reachedraise it, or 0 turns it off
"Chest full"the tool chest has no free slotunload at the depot, or buy a bigger chest tier
Cargo lost on unloadthe truck was damaged (ServerConfig.CargoRisk)by design; turn off with Config.Features.cargoRisk = false
Uniform pieces missing or oddthe drawables in Config.Uniform do not exist on your clothing buildpick drawables from your own clothing menu; a missing one is skipped
Clothes not restored after a crashthe game crashed mid-shift, so the uniform was never removedthe next login loads the clothes your clothing script saved; or re-select an outfit
The board is blank / shows raw keys like ui.titlea broken locale filecheck locales/<code>.json is valid JSON; F8 shows the error
The board will not close / mouse stuckanother NUI took focuspress ESC; restart cc_tradie releases focus on every exit path

Staff and data

QuestionAnswer
A player lost a chestopen /tradieadmin, find the run (player, citizen id or TR- id), Restore (player online) or Archive with a note
A restart happened mid-shiftevery chest in flight was written to its run as FORFEITED_SERVER_RESTART; restore it from the panel
Import from acc_tradie did nothingit is a dry run unless you add run: /tradieimport run
Import ran twicesafe: characters and run ids already imported are skipped

Still stuck

Open a ticket in the Code Cartel Discord with:

  1. the server console from cc_tradie start to the error,
  2. F8 output if it is a client problem,
  3. your framework, inventory and target resource names (cc_lib prints them at start),
  4. the cc_tradie and cc_lib versions (cc_tradie 1.3.0 started line).