Installing cc_scrapyard
Put cc_scrapyard in your resources folder. The folder name must stay cc_scrapyard (events and exports are named after it).
1. Requirements
- cc_lib 1.13.0+ and oxmysql, both started before cc_scrapyard.
- Optional: your framework (Qbox, QBCore, ESX Legacy, ox_core), inventory, target and dispatch resources. Start them before cc_scrapyard too.
2. The folder
Put cc_scrapyard in your resources folder. The folder name must stay cc_scrapyard (events and exports are named after it).
3. Items
Pick the file for your inventory in install/items/:
| Inventory | File | Where it goes |
|---|---|---|
| ox_inventory (Qbox, ESX, ox_core, standalone) | ox_inventory.lua | the entries into ox_inventory/data/items.lua |
| qb-inventory, ps-inventory, lj-inventory and forks | qb-inventory.lua | the entries into qb-core/shared/items.lua |
| ESX default inventory | esx.sql | run once on your database |
| qs-inventory, codem, core_inventory, tgiann | qb-inventory.lua | translate the ten parts into your inventory's item format |
The file holds the ten parts (scrap_door … scrap_ecu) and the bench materials (metalscrap, aluminum, glass, plastic, rubber, copper, iron, steel, electronickit). Skip any material your server already has. To use your own material names, change the yield lines in server/config.lua → ServerConfig.Parts; the boot check tells you if a name is not an item.
Pictures. The panel and your inventory show .png from your inventory's image folder (ox_inventory: web/images/, qb: html/images/). Add a picture for each part with the item's name, or point Config.Parts..image at a picture you already have (for example veh_engine from a mechanic pack). A missing picture just leaves an empty tile — nothing breaks.
4. server.cfg
Paste install/convars.cfg:
ensure oxmysql
ensure cc_lib
ensure cc_scrapyard
# set cc_scrapyard:webhook "" # optional Discord log (set, never setr)
# setr cc_scrapyard:locale "en" # optional language
add_ace group.admin cc_scrapyard.admin allow5. Database
Nothing to run: the four tables (cc_scrapyard_workers, _ledger, _chops, _archive) are created at boot. sql/cc_scrapyard.sql has the same statements if you prefer to run them by hand.
The yard also reads your framework's garage table (to know who owns a car) — Qbox/QBCore player_vehicles, ESX owned_vehicles, ox_core vehicles. That is automatic; a custom garage table is one block in server/config.lua → ServerConfig.Garage. With no framework, scrapping your own car is switched off and every chopped car counts as an NPC car.
6. Start and check
Restart the server and look for:
cc_scrapyard config OK (1 yard(s) open, framework qbox, garage schema qb)Any config mistake prints one cc_scrapyard config: line naming the key. Then in game, as an admin, run /scrapyard status.
7. Places
The defaults are on the base map: Rogers Salvage & Scrap (La Puerta, 3 strip bays) and a chop back lot in Hawick. A second chop site (Sandy Shores) ships switched off as an example. To move or add a point, stand there and run /scrapyard pos — it prints a vec4 to paste into config.lua. Add a bay by copying a line in bays and moving it 6.5 m along x.
8. First test run (10 minutes)
- Talk to the foreman → Take a wreck (Beater). A dirty, dented car appears on a free bay.
- Pick up the jack at its stand, set it at the car, take a wheel off (click the nuts).
- Take the bonnet off → carry it to your bay's cage → press E. It is in your inventory.
- Strip the rest (the engine needs the hoist), then crush the shell at the crusher: cash.
- Sell at the counter. At level 2 (
/scrapyard xp <id> 300), break a door down at the bench. - Chop shop (level 3 and 2 police on duty by default —
ServerConfig.Chop.policeNpc = 0to test alone): steal a car, park it in the Hawick bay, Start chopping. Parts carry a VIN; the counter refuses them; the contact pays dirty money. - Restart the resource mid-job: the wreck disappears, a chop car is released, nothing is left behind.