Skip to content

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

KeyDefaultWhat it does
Config.PresetnilName of a preset in presets/ loaded on top of both files
Config.DebugfalseDraws the zones
Config.Depots[]3 vanilla depotsOne entry per depot, append only once live (the client sends the index)
.id'ls_docks', 'sandy', 'paleto'Unique id, stored in the database
.label, .areaShown on the blip and the page
.surveyedtruefalse closes the depot completely
.countervec4Clerk position + heading; the counter zone and the server's distance gate
.boardvec3The price board zone
.bayvec3Loading bay: staff haul lots, couriers load
.backdoor, .backdoorSurveyedPort onlyThe 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.Cargoprop_boxpile_07d + offsetsCrate props shown on a loaded courier vehicle (cosmetic)
Config.Categoriesmining, tradie, salvage, fish, farmBoard groups, in order; label = locale key category.<name>
Config.Items[item]{ label, category, unit? } how a traded item is shown
Config.Phonelb-phone, cc_supply_app, SupplyPhone resource, app id and name
Config.UI.accent#2f6fedThe one theming colour; the rest derive from it
Config.UI.maxQty1000Largest quantity the stepper offers
Config.UI.haulBarMs, hijackBarMs10000, 22000Progress bar lengths (the server keeps its own floors)
Config.Features.*all truephone, exchangeSignal, blips, peds, orders, contracts, hijack, grey, records

server/config.lua

Price curve and market

KeyDefaultWhat it does
Curve.bidSlope/bidMin/bidMax0.5 / 0.60 / 1.25bid = B x clamp(1 + bidSlope x (1 - stock/target), bidMin, bidMax)
Curve.askMid/askSlope/askMin/askMax1.6 / 0.4 / 1.40 / 2.00ask = B x clamp(askMid + askSlope x (1 - stock/target), askMin, askMax)
Curve.loopMargin1.10The ask at any depot is at least the best bid anywhere x this. Boot refuses askMin <= bidMax x loopMargin
MoveLimit.perHour0.15The bid moves at most 15% per hour per line (smooths a dump)
Reversion.everySeconds / rate600 / 0.02Stock above target loses 2% of the excess every 10 min (no money)
SeedShare0Share of target each depot starts with (0 = empty)

Caps and gates

KeyDefaultWhat it does
Caps.npcBidPerCharHour35000Most a character earns selling to depots per rolling hour
Caps.npcBidPerLicenseDay300000Most a licence (all its characters) earns per day
Caps.buyPerHourDefault100Units per character per line per hour at the counter
Alerts.share / minUnits0.80 / 100Log when one character sells > 80% of a line at a depot in a day
Interact.counter/board/bay3.0 / 4.0 / 8.0Server distance gates (metres)
Cooldowns.*msPer-action rate limits
MaxQty, MaxSlots1000, 50Largest 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).

FieldMeaning
itemInventory item name
baseB, the price everything is figured from
targetT, stock per depot the curve centres on (default 500)
capUnits per character per rolling hour sold to the bid
buyCapUnits per character per hour bought at the counter
buy = falseSell-only line
importBusiness orders on this line are imported at import x B when the depot is short
capGroupLines sharing one hourly unit cap
kind'fish' (priced per kg from metadata.weight), 'farm', 'unit'
off = trueStop 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

KeyDefaultWhat it does
Orders.PremiumSteps0 .. 0.60The premium a business may offer over base (step index 0-6)
Orders.maxUnitOfBase2.0A player buy order never pays more than 2 x B a unit
Orders.maxOpen / maxUnits / maxValue8 / 1000 / 750000Per business / per order limits
Orders.hours72Unfilled orders expire and refund after this
Orders.freightMin / freightShare2500 / 0.06Freight held with the goods
Orders.haulSeconds8Server floor for a self-haul
Orders.permission'order_supplies'cc_business permission checked

Business backend (ServerConfig.Business)

KeyDefaultWhat 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 }
anyJobfalseEvery job with a society account is a business
defaultMinGrade2Grade needed when a job entry has none
bossAlwaysOrderstrueFramework 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.