cc_supply troubleshooting
Server console lines start with [cc_supply]. Client errors show in F8.
Server console lines start with [cc_supply]. Client errors show in F8.
The resource does not start
| You see | Why | Fix |
|---|---|---|
Could not find dependency cc_lib | cc_lib missing or started after cc_supply | ensure cc_lib before ensure cc_supply |
Could not find dependency oxmysql | oxmysql missing | Install oxmysql and ensure it first |
attempt to index a nil value (global 'CC') | cc_lib too old or failed to start | Update cc_lib to 1.13.0+, fix its own console errors first |
| Nothing at all, no error | fxmanifest.lua saved with a BOM by an editor | Re-save fxmanifest.lua as UTF-8 without BOM |
It starts but stays CLOSED
cc_supply stays CLOSED means nothing will sell or buy until the cause is fixed.
| You see | Why | Fix |
|---|---|---|
N config/invariant problem(s): cc_supply stays CLOSED | A config value is wrong; each problem is printed on the line above, naming the entry | Fix each named entry, restart |
[invariant] askMin ... must be above bidMax x loopMargin | You lowered the ask or raised the bid so players could buy and resell at a profit | Keep Curve.askMin > Curve.bidMax x Curve.loopMargin |
Config.Depots[2].id must be unique and non-empty | Two depots share an id | Give each depot its own id |
Config.Depots[n] (...): counter must be a vec4 | The counter needs a heading | counter = vec4(x, y, z, heading) |
database unavailable / oxmysql not loaded / schema failed: cc_supply_... | No database connection, or the DB user may not CREATE | Check mysql_connection_string; or run sql/install.sql by hand |
business orders failed to load | A database error while reading open orders | Read the error after it; usually the DB went away mid-boot. Restart cc_supply |
Warnings you can ignore (or act on)
| You see | Meaning |
|---|---|
Config.Depots[n] (...) is NOT SURVEYED: closed | That depot has surveyed = false. Intended if you closed it |
no Config.Items display entry for <item> | A traded line has no label; it shows its item name. Add it to Config.Items |
business backend: job / cc_business / off | Which business backend is live (see ServerConfig.Business.mode) |
[contracts] NPC delivery SUP-... failed (...); retrying | The business could not take the delivery (cc_business stopped, stash full). Retried every 5 min, nothing is lost |
[orders] refund of $N to <business> ... failed; retrying | The society account refused a refund. Retried until it lands |
cc_supply hook <name> failed: ... | Your own hook handler errored. The market carried on; fix your handler |
In game
| Problem | Why | Fix |
|---|---|---|
| No blips, no clerk, no target | Depot surveyed = false, or Features.blips/peds off, or your target script is not one cc_lib bridges | Check the boot line N of 3 depots surveyed; check cc_lib detected your target |
| "You have none of that to sell" with the item in your pockets | The item is stamped stolen, or it is a fish without metadata.weight | Stolen goods are refused by design. Fish need a fishing script that sets a weight |
| "This depot is not open yet." | The depot is closed (surveyed = false) | Survey it and set surveyed = true |
| Sale stops at a small amount | The character hit an hourly cap (per line or $35,000/h) or the licence hit its daily cap | Working as intended. Tune ServerConfig.Caps and each line's cap |
| "That is not allowed right now." | One of your own before* hooks refused it | Check custom/server.lua and any resource that called registerHook |
| Business desk says you cannot order | Job mode: the job is not in ServerConfig.Business.jobs, or the grade is under minGrade. cc_business: no order_supplies permission | Add the job / lower minGrade / grant the permission |
| Business order paid nothing out / "can't afford" | The job's society account is empty or does not exist | Fund the society; ESX needs the society_<job> account |
| Finished orders never arrive at the business | Job mode without a stash: lots wait at the depot bay | Haul them from the depot bay, or set stash on ox_inventory / qb-inventory |
| No courier contracts appear | No courier script, or it is not in ServerConfig.Contracts.trusted, or the route is under minRouteMeters/cargo under minValue | Add your courier resource to trusted; lower the thresholds |
| Hijack: "Not enough police on duty" | Crime.minPolice on-duty police required | Lower minPolice, or check policeJobs match your job names |
| Back door: "The buyer does not know you." | Crime.requiredItem is set and you do not carry it | Carry it, or set requiredItem = nil |
| Back door money went to crypto (QBCore/Qbox) | dirtyAccount = 'black' maps to crypto there | Set dirtyAccount = 'item:markedbills' (or your dirty-money item) |
| Phone app missing | lb-phone not started, or Features.phone = false | Start lb-phone before or after; the app re-registers itself |
| NUI stuck open after a restart | Should not happen (focus is released on resource stop); if it does | Press ESC; report it with your F8 log |
Still stuck
Run /supplyadmin status and copy the console from ensure cc_supply onwards, with your framework, inventory and target names, to Code Cartel support.