Skip to content

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

KeyDefaultWhat it does
Config.DebugfalseExtra 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)

KeyTurns off
yardThe whole legal yard (foreman, wrecks, crusher)
ownCarScrapping your own car
counterSelling clean parts
benchBreaking parts into materials
upgradesBuying upgrades
chopThe whole chop shop
contractsChop contracts
hotListThe hot list (and its price bonus)
vincheck/vincheck
toolsThe jack and hoist steps (wheels and engine come straight off)
wheelNutsThe nut minigame (a plain skill check instead)
floorPaintPainted bay/cage/stand markings and the floor chevrons
guideGPS route, blip and arrow to the next step
blipsYard map blips

The server enforces every toggle: a feature that is off cannot be used by a modded client.

Each yard: id, label, enabled, blip = { sprite, colour, scale } (or nil), and points:

PointWhat 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, hoistTool stands (omit both to skip the tool steps at this site)
benchThe dismantling bench
crusherThe crusher control
cageModelThe cage prop (open face along the cage point's heading)
propsDressing: { 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

KeyDefault
bayRadius6.0Metres the car may be from the chop bay point
contractRadius110.0The search circle for a contract car
contractSpots7 base-map car parksWhere 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

KeyDefault
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.PartOrderMenu 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.UpgradesDisplay labels and icons
Config.WreckDirt, dents, smashed glass, part target radius
Config.ToolsJack and hoist props, carry offsets, placement, lift, animations
Config.BoltsThe wheel-nut minigame: nut count, ring size, camera, markers, sound
Config.CrusherPress sequence: duration, slams, sound, particles, cube prop
Config.DressingBuild 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.CategoriesVehicle category → tier. Unlisted categories are refused
ServerConfig.Vehicles.sourcesWhere categories come from, in order: config, qbx, qb, esx, builtin
ServerConfig.Vehicles.modelsAdd-on cars: { mycar = 'sports' } or { mycar = 3 }
ServerConfig.UnknownModelTiernil 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

KeyDefault
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.legalCap270000Counter + hull per licence per rolling hour
Pay.chopCap300000Fence per licence per rolling hour
Pay.benchHotCap45Parts broken down at a chop bench per hour
Pay.fenceMult / hotListMult1.25 / 1.50Fence price multipliers
Pay.maxSlots50Inventory slots scanned for parts
Pay.useBoosttrueHonour 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 / qbResource names the qbx / qb vehicle sources read
Log.webhookFrom the convar cc_scrapyard:webhook (never write the URL in this file)
Retention.chopDays / archiveDays / batchVIN records and own-car archives deleted after N days, in batches