Skip to content

Troubleshooting

First run /scrapyard status (as an admin) and read the server console around cc_scrapyard. Every config mistake is printed at boot as one cc_scrapyard config: line naming the key.

First run /scrapyard status (as an admin) and read the server console around cc_scrapyard. Every config mistake is printed at boot as one cc_scrapyard config: line naming the key.

The resource does not start

You seeCauseFix
Could not find dependency cc_lib / oxmysqlStarted before its dependencies, or missingensure oxmysql and ensure cc_lib above ensure cc_scrapyard
attempt to index a nil value (global 'CC')cc_lib is not started, or an old cc_libInstall cc_lib 1.13.0+ and start it first
attempt to index a nil value (global 'MySQL')oxmysql missing or not startedInstall oxmysql, start it first, check its mysql_connection_string
Nothing at all, no errorThe folder was renamed, or fxmanifest.lua was saved with a BOMKeep the folder name cc_scrapyard; re-save the manifest as UTF-8 without BOM
Failed to verify protected resourceThe escrowed files were edited, or the resource is on a server not tied to your Cfx.re accountRe-download from Keymaster; only edit the escrow-ignored files

Boot warnings

You seeFix
item "scrap_door" (part door) is not an item your inventory knowsAdd the items from install/items/ for your inventory, restart the inventory, then this resource
item "metalscrap" (yield of door) is not ...Add the material, or rename it in ServerConfig.Parts.<part>.yield to one you have
ServerConfig.X.y is a string, want a numberFix the type at that key in server/config.lua
no garage schema for framework "standalone" (info)Expected without a framework: own-car scrap is off. Set ServerConfig.Garage.schema to use your own table
model 1234567 is in no vehicle list, tier refusedAn add-on car. Add it: ServerConfig.Vehicles.models = { mycar = 'sports' }
ledger read failed, sales stay closedThe database was unreachable at boot. Fix oxmysql and restart the resource

In game

ProblemCauseFix
"Too far" right next to the foremanYour edited point has the wrong z, or is a vec3Use /scrapyard pos where you stand and paste the vec4
No target options anywhereNo target resource, and you did not notice the [E] promptsExpected: walk up to a point and press E. Or install ox_target / qb-target
"Scrap this car" never shows on my carNot parked within 4 m of a bay's car point, still in the car, own-car scrap off, or no garage schemaPark on the painted frame, get out; check Config.Features.ownCar and /scrapyard status
"That car is not yours"The plate is not in your framework's garage table under your characterOnly cars you own; on a custom garage, set ServerConfig.Garage.schema
"Start chopping" refused, "too quiet"Not enough police on dutyServerConfig.Chop.policeNpc / policeOwned (set 0 to test)
"This car is too hot"That plate was chopped in the last 24 hServerConfig.Chop.ownedPerPlate / npcPerPlate
A wreck appears in the air / sinksThe bay's z is wrong for your mapCars want ground + 0.55; re-take the point with /scrapyard pos
"The yard has no free bay"Every bay has a car (any vehicle within ServerConfig.Jobs.bayRadius)Move the parked car, or add a bay
Part pictures are empty squaresNo <item>.png in your inventory's image folderAdd the pictures, or set Config.Parts.<part>.image / Config.UI.imagePath
The panel does not close / mouse stuckAnother resource took NUI focusPress Esc; restart cc_scrapyard (it always releases focus on stop)
Fence pays nothing on QBCoredirtyAccount = 'auto' pays the black_money item, which QBCore lacksAdd black_money (in install/items/qb-inventory.lua) or set item:markedbills
"The yard cannot pay more this hour"The rolling hourly capServerConfig.Pay.legalCap / chopCap
Wheels stay on the car for other playersThe client that strips must own the car for a momentUsually network lag; it corrects on the next part. Report it with your game build if it persists
A chopped player car never returnsNo garage schema, or your garage uses its own columnsSet ServerConfig.Garage.schema to a table for your garage

Restart and cleanup

restart cc_scrapyard removes every wreck, prop, ped, target and blip it made and releases NUI focus. A chop car is released where it stands (unfrozen). Jobs in progress end; parts already stowed stay in the inventory.

Still stuck

Open a ticket with: the console lines around cc_scrapyard, the output of /scrapyard status, your framework and inventory names, and what you did right before it went wrong.