Configuration reference
Two files, both open. Every key is commented in the file itself; this page says what each section is for and which keys you are most likely to change.
Two files, both open. Every key is commented in the file itself; this page says what each section is for and which keys you are most likely to change.
| File | Who can read it | Holds |
|---|---|---|
config.lua | every player (shared) | locations, models, labels, toggles, camera and UI presentation |
server/config.lua | the server only | prices, hashrates, wattages, rates, caps, rent, anti-cheat floors, webhooks |
Never move a price or a payout into config.lua: players can read it.
config.lua
| Section | What it controls | Most-changed keys |
|---|---|---|
Config.Debug | Draw every slot and zone, print every distance check (or /pcmadmin debug for one admin) | |
Config.Coins | The four coins: names, symbols, flavour line | name, symbol (never key: it names the wallet column) |
Config.Pools | The three mining pools: names | name |
Config.Rigs, Psus, Gpus, Coolers, Boards, Cpus, Rams, M2s, Fans | Each part: item name, label, model | label (rename parts freely), item (must match your inventory) |
Config.Paste, Config.Repair | The two consumables | |
Config.Shop | The PC shop ped, blip | coords, model, blip, enabled |
Config.Exchange | The crypto exchange clerk, blip | ped.coords, blip |
Config.Farm | The server-farm desk and the warehouse interior | enabled, desk, units (never lower than a rented number), unit.* |
Config.Housing | Rigs in houses | enabled, provider (auto, tcc-housing, custom, none) |
Config.Crew | Crew access roles, gang grants | enabled, gangs.enabled |
Config.Phone | lb-phone Rig Monitor app and phone alerts | enabled, alerts.gap |
Config.Immersion | Hum, lights, smoke, close-up camera | each toggle |
Config.Screens | Wall screens inside the warehouse | enabled |
Config.Overclock | Overclock panel presentation | |
Config.Tank | Immersion tank effect | |
Config.NetEvents | How network events are announced | |
Config.Tutorial | The first-build guide card (off by default) | enabled (also ServerConfig.Tutorial.enabled) |
Config.Assembly | Where fitted parts sit inside each case | (use /pcmadmin calibrate) |
Config.Bench | The hands-on workbench: camera, trays, keys, recipes | enabled (false = plain progress bar with the same server checks) |
Config.Command | The player guide command | default pcmining |
Config.Placement | Placing a rig in a house | maxDistance |
Config.Facility | Generators, air conditioners, tanks: models and labels |
server/config.lua
| Section | What it controls |
|---|---|
Rigs, Boards, Cpus, Rams, M2s, Fans, Psus, Gpus, Coolers | Prices, hashrate, wattage, sockets and slots of every part (index-aligned with config.lua) |
Core, Stock | What a case needs to boot; the stock core of a case |
Paste, Repair | Consumable prices; how much health a kit restores |
Rate.perMH | Gross dollars per hour per MH/s at the mean price: the master income dial |
Wear | How fast cards wear, health of unknown cards |
Scrap, Refurb | Recycling dead cards and refurbishing them (materials are your server's items) |
Activity | Full speed for fullMinutes after a service, then throttle |
Power | Price per kWh, billing interval, debt cut-off |
Market, Coins | Each coin's price walk: mean, bounds, volatility, news swings |
Pools | Fees, variance, solo block odds |
Sell | Exchange fee, daily cash cap per licence, sale burst limit, optional shared ceiling (combined) |
Exchange | Optional feed to a stock-exchange resource (off) |
Limits | Rigs per character, rigs per house |
Access | Exchange code: session length, lockout, reset fee, pepper fallback |
Farm | Rent per week, weeks paid ahead, routing bucket base, leave watchdog |
Builds | The ready-made builds the store sells |
Resale | Share of the price the shop pays back for used parts |
Guard | Distances and time floors the server enforces (anti-cheat) |
Bench, Assembly | Server pace and checks for the hands-on steps |
Flush | How often memory is written to the database |
PayAccount | bank or cash for exchange payouts |
Crew | Crew limits and withdrawal allowances |
Admin | Admin panel limits (price override clamp) |
Webhooks, LogName, Logs, ActivityLog | Discord URLs (or convar names), log retention |
Facility, Tank | Generator fuel, grid and cooling capacity, tank fluid |
Tutorial | Guide on/off and its one-time perk |
Overclock | Steps, crash odds, stress test |
Events | Network events: odds, cooldowns, schedule; every effect only ever lowers output |
Scaling the economy
The defaults suit a server where a legal job pays about $250k an hour: a maxed setup nets about $45k an hour, a starter rig about $2.5k, and payback takes 15–32 hours of play.
On a server where jobs pay less, scale income and prices together so the ratios hold. If jobs pay $20k an hour (12.5 times less):
- Divide
Rate.perMHby 12.5. - Divide every
pricein the part tables,Paste,Repair,Farm.rentPerWeekandPower.perKWhby 12.5. - Divide
Sell.dailyCapby 12.5.
Coin prices (Market, Coins) are in dollars per coin; you may leave them, since income is set by Rate.perMH at the mean price.
Hooks and custom code
custom/server.lua is yours. See EXPORTS.md for every hook.