Configuration reference
Two files. config.lua is public (every player can read it): places, models, props, animations, labels, toggles. server/config.lua is secret (never sent to a client): every price, payout, XP figure, ca
Two files. config.lua is public (every player can read it): places, models, props, animations, labels, toggles. server/config.lua is secret (never sent to a client): every price, payout, XP figure, cap, police gate and timer. Both are escrow-ignored.
A wrong type or a broken reference prints one line at boot, cc_scrapyard config: ..., and the resource keeps running. Restart the resource after an edit.
config.lua
Top level
| Key | Default | What it does |
|---|---|---|
Config.Debug | false | Extra client console lines |
Config.Locale | 'en' | locales/<name>.json. The convar setr cc_scrapyard:locale "de" wins over it |
Config.Commands.main | 'scrapyard' | /scrapyard quit, help and the admin subcommands |
Config.Commands.vincheck | 'vincheck' | The police VIN check |
Config.Features (all true by default)
| Key | Turns off |
|---|---|
yard | The whole legal yard (foreman, wrecks, crusher) |
ownCar | Scrapping your own car |
counter | Selling clean parts |
bench | Breaking parts into materials |
upgrades | Buying upgrades |
chop | The whole chop shop |
contracts | Chop contracts |
hotList | The hot list (and its price bonus) |
vincheck | /vincheck |
tools | The jack and hoist steps (wheels and engine come straight off) |
wheelNuts | The nut minigame (a plain skill check instead) |
floorPaint | Painted bay/cage/stand markings and the floor chevrons |
guide | GPS route, blip and arrow to the next step |
blips | Yard map blips |
The server enforces every toggle: a feature that is off cannot be used by a modded client.
Config.Yards (legal sites)
Each yard: id, label, enabled, blip = { sprite, colour, scale } (or nil), and points:
| Point | What it is |
|---|---|
foreman = { coords, model } | The ped: wrecks, own car, level, upgrades, walk away |
counter = { coords, model } | The ped who buys clean parts |
bays = { { car, cage }, ... } | Strip bays: where the car sits and that bay's own parts cage |
jack, hoist | Tool stands (omit both to skip the tool steps at this site) |
bench | The dismantling bench |
crusher | The crusher control |
cageModel | The cage prop (open face along the cage point's heading) |
props | Dressing: { model, at = '<point>', offset = vec4 } or { model, coords = vec4 }; solid = false for no collision |
Config.Chops (illegal sites)
id, label, area (what the police are told), enabled, contact = { coords, model }, bay (park the car here), rack (stow parts with E), bench, optional jack / hoist, props.
Config.Chop
| Key | Default | |
|---|---|---|
bayRadius | 6.0 | Metres the car may be from the chop bay point |
contractRadius | 110.0 | The search circle for a contract car |
contractSpots | 7 base-map car parks | Where contract cars are parked |
Config.Guide
Draw distances (bayDraw, markerDraw, routeOff), colours (colour, chopColour, otherColour), blip sprites, floor decal sizes (floor.*), the stow key (stowKey = 38, E) and stowReach (metres the prompt shows; the server allows ServerConfig.Strip.stowReach).
Config.UI
| Key | Default | |
|---|---|---|
accent / chopAccent | '#3b2f1e' / '#3a1414' | Header tint per world (ignored if unreadable on the dark ground) |
brand | 'Salvage' | The small word in the panel lockup |
imagePath | 'auto' | Item pictures. auto finds your inventory's image folder; or 'nui://my_inv/images/' |
All other colours, radius and fonts are one :root token block at the top of web/style.css.
Parts, slots, tiers, tools
| Key | |
|---|---|
Config.Parts.<key> | item, image, label, anim (scenario or dict/clip), tool (prop in hand), carry (prop + walk), fx |
Config.PartOrder | Menu order. The panel sends an index into this |
Config.Slots | { id, part, bone, door/wheel index, optional, needs = {...}, jack, hoist } |
Config.TierLabels, Config.LevelTitles, Config.Upgrades | Display labels and icons |
Config.Wreck | Dirt, dents, smashed glass, part target radius |
Config.Tools | Jack and hoist props, carry offsets, placement, lift, animations |
Config.Bolts | The wheel-nut minigame: nut count, ring size, camera, markers, sound |
Config.Crusher | Press sequence: duration, slams, sound, particles, cube prop |
Config.Dressing | Build a site within near m, tear down past far m, check every check ms |
server/config.lua
Tiers and vehicles
| Key | |
|---|---|
ServerConfig.Tiers[n] | level, chopLevel, mult (price + yield), hull (crusher cash), slots, wrecks (models the foreman spawns; nil = own cars only) |
ServerConfig.Categories | Vehicle category → tier. Unlisted categories are refused |
ServerConfig.Vehicles.sources | Where categories come from, in order: config, qbx, qb, esx, builtin |
ServerConfig.Vehicles.models | Add-on cars: { mycar = 'sports' } or { mycar = 3 } |
ServerConfig.UnknownModelTier | nil refuses a car no source knows (safe); 1 treats it as a beater |
Parts and stripping
ServerConfig.Parts.: price (tier 1 counter price), seconds (work time), skill (difficulties), yield = { { item, n }, { item, n, chance = 0.05 } }, sellOnly.
ServerConfig.Strip: floor (0.85 — a finish faster than 85% of the time is refused), reach, stowReach, stowMinMs, benchLevel, benchSeconds, benchMax, xpPart.
Levels, XP, upgrades
ServerConfig.Levels (XP thresholds, ascending), ServerConfig.XP (hullPerTier, chopPerTier, chopMinShare), ServerConfig.LevelPerks, ServerConfig.Upgrades. (level, price, time, fewerKeys, bonusChance, fence, hotListExtra, hull), ServerConfig.UpgradeMoney.society (false = a money sink; a job name = paid into that society).
Money
| Key | Default | |
|---|---|---|
Pay.account | 'cash' | Counter and hull |
Pay.dirtyAccount | 'auto' | Fence: auto = black on ESX/ox_core, the black_money item elsewhere; or black, cash, item:markedbills |
Pay.legalCap | 270000 | Counter + hull per licence per rolling hour |
Pay.chopCap | 300000 | Fence per licence per rolling hour |
Pay.benchHotCap | 45 | Parts broken down at a chop bench per hour |
Pay.fenceMult / hotListMult | 1.25 / 1.50 | Fence price multipliers |
Pay.maxSlots | 50 | Inventory slots scanned for parts |
Pay.useBoost | true | Honour a cc_lib pay/XP event boost |
Jobs, own car, garage
ServerConfig.Jobs: foremanReach, crusherReach, bayRadius, wreckPlate, settleMs, idleMinutes, dutyBlock (on duty in these jobs = cannot work the yard; {} turns it off).
ServerConfig.OwnCar: enabled, protected (models never scrapped).
ServerConfig.Garage: schema (auto | qb | esx | ox | none | a table — see server/owned.lua SCHEMAS), financeColumn ('financed', jg-dealerships), holdQuery (SQL returning n > 0 for a held car), oxRecoverTo (ox_core garage for recovered cars).
Chop shop and dispatch
ServerConfig.Chop: reach, policeNpc, policeOwned, policeJobs, ownedPerPlate, npcPerPlate, ownedPerChopper, recoveryFee, blockedPlatePrefixes, protected, contract.* (enabled, minutes, cooldown, contractXp, playerClear, plates), hotList.* (size, minutes, pool).
ServerConfig.Dispatch: chance per tier (NPC cars; player cars always report), delayMs, blur (metres), priority, code, blip.
Integrations, logging, retention
| Key | |
|---|---|
Connections.insurance | { resource = '', export = 'IsInsured' } — insured cars pay no recovery fee |
Connections.qbx / qb | Resource names the qbx / qb vehicle sources read |
Log.webhook | From the convar cc_scrapyard:webhook (never write the URL in this file) |
Retention.chopDays / archiveDays / batch | VIN records and own-car archives deleted after N days, in batches |