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 see | Cause | Fix |
|---|---|---|
Could not find dependency cc_lib / oxmysql | Started before its dependencies, or missing | ensure 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_lib | Install cc_lib 1.13.0+ and start it first |
attempt to index a nil value (global 'MySQL') | oxmysql missing or not started | Install oxmysql, start it first, check its mysql_connection_string |
| Nothing at all, no error | The folder was renamed, or fxmanifest.lua was saved with a BOM | Keep the folder name cc_scrapyard; re-save the manifest as UTF-8 without BOM |
Failed to verify protected resource | The escrowed files were edited, or the resource is on a server not tied to your Cfx.re account | Re-download from Keymaster; only edit the escrow-ignored files |
Boot warnings
| You see | Fix |
|---|---|
item "scrap_door" (part door) is not an item your inventory knows | Add 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 number | Fix 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 refused | An add-on car. Add it: ServerConfig.Vehicles.models = { mycar = 'sports' } |
ledger read failed, sales stay closed | The database was unreachable at boot. Fix oxmysql and restart the resource |
In game
| Problem | Cause | Fix |
|---|---|---|
| "Too far" right next to the foreman | Your edited point has the wrong z, or is a vec3 | Use /scrapyard pos where you stand and paste the vec4 |
| No target options anywhere | No target resource, and you did not notice the [E] prompts | Expected: walk up to a point and press E. Or install ox_target / qb-target |
| "Scrap this car" never shows on my car | Not parked within 4 m of a bay's car point, still in the car, own-car scrap off, or no garage schema | Park 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 character | Only cars you own; on a custom garage, set ServerConfig.Garage.schema |
| "Start chopping" refused, "too quiet" | Not enough police on duty | ServerConfig.Chop.policeNpc / policeOwned (set 0 to test) |
| "This car is too hot" | That plate was chopped in the last 24 h | ServerConfig.Chop.ownedPerPlate / npcPerPlate |
| A wreck appears in the air / sinks | The bay's z is wrong for your map | Cars 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 squares | No <item>.png in your inventory's image folder | Add the pictures, or set Config.Parts.<part>.image / Config.UI.imagePath |
| The panel does not close / mouse stuck | Another resource took NUI focus | Press Esc; restart cc_scrapyard (it always releases focus on stop) |
| Fence pays nothing on QBCore | dirtyAccount = 'auto' pays the black_money item, which QBCore lacks | Add black_money (in install/items/qb-inventory.lua) or set item:markedbills |
| "The yard cannot pay more this hour" | The rolling hourly cap | ServerConfig.Pay.legalCap / chopCap |
| Wheels stay on the car for other players | The client that strips must own the car for a moment | Usually network lag; it corrects on the next part. Report it with your game build if it persists |
| A chopped player car never returns | No garage schema, or your garage uses its own columns | Set 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.