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 see | Cause | Fix |
|---|---|---|
Could not find dependency cc_lib / cc_lib is not started | cc_lib missing or started after cc_tradie | put ensure cc_lib above ensure cc_tradie in server.cfg |
Could not find dependency oxmysql | oxmysql missing | install oxmysql and ensure oxmysql above cc_tradie |
attempt to index a nil value (global 'MySQL') | oxmysql started after cc_tradie | move ensure oxmysql up |
cc_tradie: these items are not defined in your inventory: ... | the items in ServerConfig.Items do not exist | add 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 unusable | the N lines above name each key; fix and restart. Every action is refused until then |
cc_tradie config: ... warning lines | a typo or bad value; a default was used | fix 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.Items | add the key to ServerConfig.Items |
cc_tradie: REFUND FAILED ... | a purchase failed and the money could not be returned | rare: 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.lua | fix the line it names; cc_tradie keeps running |
cc_lib: no such module '...' | cc_lib is older than cc_tradie needs | update cc_lib to 1.7.0 or newer |
This resource requires escrow / You lack the required entitlement | the asset is not linked to your Cfx.re account, or the folder was renamed | download it again from your Keymaster portal; keep the folder name cc_tradie |
Failed to load script ... syntax error in a config file | a missing comma or quote in your edit | the message names the file and line |
In game
| You see | Cause | Fix |
|---|---|---|
| No depot blip, no foreman | the resource did not start (see the console), or Config.Depot.blip.enabled = false | check ensure cc_tradie and the console |
| The foreman has no target option | no target resource is running | walk up and press E; or install ox_target / qb-target |
| "Your work profile could not be loaded" | the database is not ready | oxmysql not started, wrong connection string, or started after cc_tradie |
| "The tradie job is misconfigured" on every action | CONFIG BROKEN at start | see the server console |
| "Buy a jackhammer at the depot first" | Config.Features.jackhammer is on and the worker has none | buy 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.bays | clear the bays or add another vec4 bay |
| No keys to the truck | your keys resource has no API cc_lib can call (esx_vehiclelock / esx_carlock), or it is not detected | force it in cc_lib (Config.Bridge.keys); see COMPATIBILITY |
| "Drill inside your contract's site" while standing in it | the site's minZ / maxZ do not cover the ground there | set 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 refused | the 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 coming | the worker hit ServerConfig.CashCap.perWindow for the hour | by design; raise it or set perWindow = 0 to turn the cap off |
| No more materials from holes | ServerConfig.ItemCap.itemsPerWindow reached | raise it, or 0 turns it off |
| "Chest full" | the tool chest has no free slot | unload at the depot, or buy a bigger chest tier |
| Cargo lost on unload | the truck was damaged (ServerConfig.CargoRisk) | by design; turn off with Config.Features.cargoRisk = false |
| Uniform pieces missing or odd | the drawables in Config.Uniform do not exist on your clothing build | pick drawables from your own clothing menu; a missing one is skipped |
| Clothes not restored after a crash | the game crashed mid-shift, so the uniform was never removed | the next login loads the clothes your clothing script saved; or re-select an outfit |
The board is blank / shows raw keys like ui.title | a broken locale file | check locales/<code>.json is valid JSON; F8 shows the error |
| The board will not close / mouse stuck | another NUI took focus | press ESC; restart cc_tradie releases focus on every exit path |
Staff and data
| Question | Answer |
|---|---|
| A player lost a chest | open /tradieadmin, find the run (player, citizen id or TR- id), Restore (player online) or Archive with a note |
| A restart happened mid-shift | every chest in flight was written to its run as FORFEITED_SERVER_RESTART; restore it from the panel |
| Import from acc_tradie did nothing | it is a dry run unless you add run: /tradieimport run |
| Import ran twice | safe: characters and run ids already imported are skipped |
Still stuck
Open a ticket in the Code Cartel Discord with:
- the server console from
cc_tradiestart to the error, - F8 output if it is a client problem,
- your framework, inventory and target resource names (cc_lib prints them at start),
- the cc_tradie and cc_lib versions (
cc_tradie 1.3.0 startedline).