Skip to content

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 seeWhyFix
Could not find dependency cc_libcc_lib missing or started after cc_supplyensure cc_lib before ensure cc_supply
Could not find dependency oxmysqloxmysql missingInstall oxmysql and ensure it first
attempt to index a nil value (global 'CC')cc_lib too old or failed to startUpdate cc_lib to 1.13.0+, fix its own console errors first
Nothing at all, no errorfxmanifest.lua saved with a BOM by an editorRe-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 seeWhyFix
N config/invariant problem(s): cc_supply stays CLOSEDA config value is wrong; each problem is printed on the line above, naming the entryFix each named entry, restart
[invariant] askMin ... must be above bidMax x loopMarginYou lowered the ask or raised the bid so players could buy and resell at a profitKeep Curve.askMin > Curve.bidMax x Curve.loopMargin
Config.Depots[2].id must be unique and non-emptyTwo depots share an idGive each depot its own id
Config.Depots[n] (...): counter must be a vec4The counter needs a headingcounter = vec4(x, y, z, heading)
database unavailable / oxmysql not loaded / schema failed: cc_supply_...No database connection, or the DB user may not CREATECheck mysql_connection_string; or run sql/install.sql by hand
business orders failed to loadA database error while reading open ordersRead the error after it; usually the DB went away mid-boot. Restart cc_supply

Warnings you can ignore (or act on)

You seeMeaning
Config.Depots[n] (...) is NOT SURVEYED: closedThat 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 / offWhich business backend is live (see ServerConfig.Business.mode)
[contracts] NPC delivery SUP-... failed (...); retryingThe 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; retryingThe 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

ProblemWhyFix
No blips, no clerk, no targetDepot surveyed = false, or Features.blips/peds off, or your target script is not one cc_lib bridgesCheck 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 pocketsThe item is stamped stolen, or it is a fish without metadata.weightStolen 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 amountThe character hit an hourly cap (per line or $35,000/h) or the licence hit its daily capWorking as intended. Tune ServerConfig.Caps and each line's cap
"That is not allowed right now."One of your own before* hooks refused itCheck custom/server.lua and any resource that called registerHook
Business desk says you cannot orderJob mode: the job is not in ServerConfig.Business.jobs, or the grade is under minGrade. cc_business: no order_supplies permissionAdd 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 existFund the society; ESX needs the society_<job> account
Finished orders never arrive at the businessJob mode without a stash: lots wait at the depot bayHaul them from the depot bay, or set stash on ox_inventory / qb-inventory
No courier contracts appearNo courier script, or it is not in ServerConfig.Contracts.trusted, or the route is under minRouteMeters/cargo under minValueAdd your courier resource to trusted; lower the thresholds
Hijack: "Not enough police on duty"Crime.minPolice on-duty police requiredLower 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 itCarry it, or set requiredItem = nil
Back door money went to crypto (QBCore/Qbox)dirtyAccount = 'black' maps to crypto thereSet dirtyAccount = 'item:markedbills' (or your dirty-money item)
Phone app missinglb-phone not started, or Features.phone = falseStart lb-phone before or after; the app re-registers itself
NUI stuck open after a restartShould not happen (focus is released on resource stop); if it doesPress 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.