Skip to content

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

KeyTypeDefaultEffect
Config.Commandstring | false'boards'Chat command that opens the menu. false = only exports.cc_boards:OpenBoards()
Config.Keybindstring | falsefalseDefault key for the menu (e.g. 'F7'); players can rebind it
Config.Rowsinteger 1-5010Rows shown per board
Config.Boardslist6 boardsMenu order. Each: key, label, icon (Font Awesome 6), unit ('money', 'points', 'count')
Config.RewardstableTitle, Crest, Custom plate, OutfitDisplay names of the four reward kinds
Config.Currencystring'$'Symbol on money boards

Every Config.Boards key needs a matching entry in ServerConfig.Boards.

server/config.lua

KeyTypeDefaultEffect
Ace.viewACE namecc_boards.viewstatus, reasons, requests
Ace.adminACE namecc_boards.adminaward, fulfil, revoke
AdminCommandstring | false'boardsadmin'Staff command name; false = none
Flush.ms5000-360000060000How often scores are written (one query)
Cache.ms0-360000060000How long a board read is cached
Capture.source'auto' | 'qb' | 'esx' | 'none''auto'Which framework money event feeds money boards. 'none' = exports only
Capture.accountssetcash, bank, moneyAccounts that count (money = ESX cash)
Capture.maxinteger10000000A single payout above this is ignored
Neverpatternsrefund, deposit, transfer, admin...Reasons that never count anywhere; checked first
Boards.<key>.kind'money' | 'racing' | 'business'—How the board is scored
Boards.<key>.reasonspatterns—Money boards: payout reasons that count (lower-case Lua patterns). {} = exports only
Boards.<key>.requiresresource—Board hidden while that resource is not started
Awards.enabledbooleantruefalse = boards only, no rewards
Awards.day1-281Day of the month rewards are given for the month before
Awards.hour0-236From this hour (server time). A server that was down catches up later that month
Awards.first'YYYY-MM' | nilnilFirst month that can win. Set it to the month after you install
Tierslist1 / 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.monthsinteger0Delete monthly score rows older than this (all-time rows and awards always kept). 0 = keep all
Channels.winners / .staffconvar namescc_boards_webhook_*First set convar wins. Set them with set, never setr
Discord.usernamestring'Leaderboards'Webhook display name
StateBagstring | false'ccBoardsTitle'Player state bag key carrying the worn title

Reason patterns, briefly

Patterns are Lua patterns matched anywhere in the lower-cased reason:

PatternMatches
'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 already YYYY-MM).
  • business — reads cc_business_transactions sales 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).