cc_supply configuration reference
Two files, both open after escrow. config.lua is public (every player's client has it): places, names, looks, switches. server/config.lua is secret: prices, caps, money rules, webhooks. The resource c
Two files, both open after escrow. config.lua is public (every player's client has it): places, names, looks, switches. server/config.lua is secret: prices, caps, money rules, webhooks. The resource checks both at boot and prints one line per problem; with a problem it stays closed (nothing sells) rather than running on a bad economy.
config.lua
| Key | Default | What it does |
|---|---|---|
Config.Preset | nil | Name of a preset in presets/ loaded on top of both files |
Config.Debug | false | Draws the zones |
Config.Depots[] | 3 vanilla depots | One entry per depot, append only once live (the client sends the index) |
.id | 'ls_docks', 'sandy', 'paleto' | Unique id, stored in the database |
.label, .area | Shown on the blip and the page | |
.surveyed | true | false closes the depot completely |
.counter | vec4 | Clerk position + heading; the counter zone and the server's distance gate |
.board | vec3 | The price board zone |
.bay | vec3 | Loading bay: staff haul lots, couriers load |
.backdoor, .backdoorSurveyed | Port only | The night fence for stolen crates |
.ped | { model, scenario } | Clerk ped (vanilla models) |
.blip | { sprite = 478, colour = 5, scale = 0.8, shortRange = true } | Map blip |
Config.Zones.<name> | Size, interact distance and icon of each target zone | |
Config.Cargo | prop_boxpile_07d + offsets | Crate props shown on a loaded courier vehicle (cosmetic) |
Config.Categories | mining, tradie, salvage, fish, farm | Board groups, in order; label = locale key category.<name> |
Config.Items[item] | { label, category, unit? } how a traded item is shown | |
Config.Phone | lb-phone, cc_supply_app, Supply | Phone resource, app id and name |
Config.UI.accent | #2f6fed | The one theming colour; the rest derive from it |
Config.UI.maxQty | 1000 | Largest quantity the stepper offers |
Config.UI.haulBarMs, hijackBarMs | 10000, 22000 | Progress bar lengths (the server keeps its own floors) |
Config.Features.* | all true | phone, exchangeSignal, blips, peds, orders, contracts, hijack, grey, records |
server/config.lua
Price curve and market
| Key | Default | What it does |
|---|---|---|
Curve.bidSlope/bidMin/bidMax | 0.5 / 0.60 / 1.25 | bid = B x clamp(1 + bidSlope x (1 - stock/target), bidMin, bidMax) |
Curve.askMid/askSlope/askMin/askMax | 1.6 / 0.4 / 1.40 / 2.00 | ask = B x clamp(askMid + askSlope x (1 - stock/target), askMin, askMax) |
Curve.loopMargin | 1.10 | The ask at any depot is at least the best bid anywhere x this. Boot refuses askMin <= bidMax x loopMargin |
MoveLimit.perHour | 0.15 | The bid moves at most 15% per hour per line (smooths a dump) |
Reversion.everySeconds / rate | 600 / 0.02 | Stock above target loses 2% of the excess every 10 min (no money) |
SeedShare | 0 | Share of target each depot starts with (0 = empty) |
Caps and gates
| Key | Default | What it does |
|---|---|---|
Caps.npcBidPerCharHour | 35000 | Most a character earns selling to depots per rolling hour |
Caps.npcBidPerLicenseDay | 300000 | Most a licence (all its characters) earns per day |
Caps.buyPerHourDefault | 100 | Units per character per line per hour at the counter |
Alerts.share / minUnits | 0.80 / 100 | Log when one character sells > 80% of a line at a depot in a day |
Interact.counter/board/bay | 3.0 / 4.0 / 8.0 | Server distance gates (metres) |
Cooldowns.* | ms | Per-action rate limits |
MaxQty, MaxSlots | 1000, 50 | Largest single trade; inventory slots scanned |
PayAccount | 'bank' | Account depot sales pay into |
Lines (ServerConfig.Lines)
One entry per traded item, append only once live (set off = true to retire one).
| Field | Meaning |
|---|---|
item | Inventory item name |
base | B, the price everything is figured from |
target | T, stock per depot the curve centres on (default 500) |
cap | Units per character per rolling hour sold to the bid |
buyCap | Units per character per hour bought at the counter |
buy = false | Sell-only line |
import | Business orders on this line are imported at import x B when the depot is short |
capGroup | Lines sharing one hourly unit cap |
kind | 'fish' (priced per kg from metadata.weight), 'farm', 'unit' |
off = true | Stop trading it |
Fish: bidOfMarket, maxPerFish, target, cap, catchStore (fishing resource with a catch store, default cc_fishing when started), source (a config file to read market prices from). Farm: bidOfSell, source.
Business orders
| Key | Default | What it does |
|---|---|---|
Orders.PremiumSteps | 0 .. 0.60 | The premium a business may offer over base (step index 0-6) |
Orders.maxUnitOfBase | 2.0 | A player buy order never pays more than 2 x B a unit |
Orders.maxOpen / maxUnits / maxValue | 8 / 1000 / 750000 | Per business / per order limits |
Orders.hours | 72 | Unfilled orders expire and refund after this |
Orders.freightMin / freightShare | 2500 / 0.06 | Freight held with the goods |
Orders.haulSeconds | 8 | Server floor for a self-haul |
Orders.permission | 'order_supplies' | cc_business permission checked |
Business backend (ServerConfig.Business)
| Key | Default | What it does |
|---|---|---|
mode | 'auto' | 'cc_business', 'job', 'off', or auto (cc_business when started) |
resource | 'cc_business' | The business resource name |
jobs[name] | {} | Job mode: { label, minGrade, stash, bay, requireDuty } |
anyJob | false | Every job with a society account is a business |
defaultMinGrade | 2 | Grade needed when a job entry has none |
bossAlwaysOrders | true | Framework bosses may always order |
excludeJobs | { unemployed } | Never businesses under anyJob |
Contracts, rail, conversion
Contracts: trusted courier resources, unclaimedSeconds (20 min, then NPC freight), claimSeconds, loadedMaxSeconds, minRouteMeters, roadFactor, fixedMinutes, metersPerMinute, maxSpeed, floorSeconds, conditionFloor, loadRadius, deliverRadius, minValue, defaultKg, classes (van/box/flatbed: maxKg, hourly rate, vehicle models), transfer (depot rebalancing) and backhaul. Rail: enabled, trusted, reserveMaxSeconds, cargoClass. Convert: trusted, holdSeconds, mechanic, recipes (cc_business only).
Crime
policeJobs, minPolice (3), hijackSeconds (20 s server floor), hijackDistance, crateItem (supply_crate), unitsPerCrate, refundShare (50% back to the business), refundCapPerDay, hijackTransfers, greyCapPerLicenceDay, greySellShare (35% of base), dirtyAccount ('black' or 'item:', e.g. 'item:markedbills'), greyBuyShare, greyBuyMax, tipChance, tipDelay, nightFrom/nightTo (22-04), requiredItem (nil = anyone), respect, backdoorRadius, recordsDays, dispatchPriority.
Integrations
Integrations.cad = { resource, send(resource, alert) } and Integrations.gangs = { resource, sanction, tax, respect }: see EXPORTS. Exchange: the tcc-exchange feed (symbol, feedSeconds, shortageAt, glutAt). Tags: optional producer source tags. Migrate: one-time cc_business buy-order import. Restock: cc_restock packaging draw. Board, SessionSeconds, Webhooks, Survey.
Locales
locales/en.json. Copy it to locales/.json, translate the values, and set setr cc_supply_locale "" in server.cfg (replicated on purpose: the client renders text too). Missing keys fall back to English. Every player-facing string goes through it.