cc_boards configuration reference
Two files. Both are escrow-ignored and commented line by line.
Two files. Both are escrow-ignored and commented line by line.
config.lua— public: sent to every player. Labels and display only.server/config.lua— secret: never leaves the server. How boards score, rewards, ACE, webhooks.
Every value is checked when the resource starts. A mistake prints one line starting cc_boards config: and the resource keeps running with a safe value (a broken board is hidden).
config.lua
| Key | Type | Default | Effect |
|---|---|---|---|
Config.Command | string | false | 'boards' | Chat command that opens the menu. false = only exports.cc_boards:OpenBoards() |
Config.Keybind | string | false | false | Default key for the menu (e.g. 'F7'); players can rebind it |
Config.Rows | integer 1-50 | 10 | Rows shown per board |
Config.Boards | list | 6 boards | Menu order. Each: key, label, icon (Font Awesome 6), unit ('money', 'points', 'count') |
Config.Rewards | table | Title, Crest, Custom plate, Outfit | Display names of the four reward kinds |
Config.Currency | string | '$' | Symbol on money boards |
Every Config.Boards key needs a matching entry in ServerConfig.Boards.
server/config.lua
| Key | Type | Default | Effect |
|---|---|---|---|
Ace.view | ACE name | cc_boards.view | status, reasons, requests |
Ace.admin | ACE name | cc_boards.admin | award, fulfil, revoke |
AdminCommand | string | false | 'boardsadmin' | Staff command name; false = none |
Flush.ms | 5000-3600000 | 60000 | How often scores are written (one query) |
Cache.ms | 0-3600000 | 60000 | How long a board read is cached |
Capture.source | 'auto' | 'qb' | 'esx' | 'none' | 'auto' | Which framework money event feeds money boards. 'none' = exports only |
Capture.accounts | set | cash, bank, money | Accounts that count (money = ESX cash) |
Capture.max | integer | 10000000 | A single payout above this is ignored |
Never | patterns | refund, deposit, transfer, admin... | Reasons that never count anywhere; checked first |
Boards.<key>.kind | 'money' | 'racing' | 'business' | — | How the board is scored |
Boards.<key>.reasons | patterns | — | Money boards: payout reasons that count (lower-case Lua patterns). {} = exports only |
Boards.<key>.requires | resource | — | Board hidden while that resource is not started |
Awards.enabled | boolean | true | false = boards only, no rewards |
Awards.day | 1-28 | 1 | Day of the month rewards are given for the month before |
Awards.hour | 0-23 | 6 | From this hour (server time). A server that was down catches up later that month |
Awards.first | 'YYYY-MM' | nil | nil | First month that can win. Set it to the month after you install |
Tiers | list | 1 / 2-3 / 4-10 | { from, to, kinds, title }. kinds: title, crest, plate, outfit. {board} in title = board label |
Plate | { min, max, chars } | 2, 8, 'A-Z0-9 ' | Rules for requested plates (chars is a Lua character class) |
Retention.months | integer | 0 | Delete monthly score rows older than this (all-time rows and awards always kept). 0 = keep all |
Channels.winners / .staff | convar names | cc_boards_webhook_* | First set convar wins. Set them with set, never setr |
Discord.username | string | 'Leaderboards' | Webhook display name |
StateBag | string | false | 'ccBoardsTitle' | Player state bag key carrying the worn title |
Reason patterns, briefly
Patterns are Lua patterns matched anywhere in the lower-cased reason:
| Pattern | Matches |
|---|---|
'fish' | fish_market:sale, Fishing payout, sellfish |
'^paycheck' | reasons that start with paycheck |
'my%-job' | my-job (- must be written %-) |
One payout can score on several boards (a fish sale is an earner and an angler). A reason that matches Never scores nowhere, whatever else it matches.
Board kinds
- money — a score table. Fed by the framework money event (by reason) and by
AddScore. Rank shown for every player, even outside the top rows. - racing — reads
cc_raceleague_results(points; its season column is alreadyYYYY-MM). - business — reads
cc_business_transactionssales minus refunds in the month; the reward goes to the business owner. Ranks outside the top 100 are not shown.
To add a board: add a line to Config.Boards and a matching entry in ServerConfig.Boards, then restart cc_boards. To remove one: delete both lines (its scores stay in the database).