Installing cc_boards
Money boards count payouts by their reason text. Every server's job scripts use different reasons, so after a few days of normal play:
Fresh install
- Requirements running first.
oxmysqlandcc_lib(1.12.0+) must start before cc_boards:cfgensure oxmysql ensure cc_lib ensure cc_boardsIf you use ox_lib for menus, start it before
cc_lib. - Copy the
cc_boardsfolder into your resources. Keep the folder namecc_boards: other scripts callexports.cc_boards. - Permissions (paste from
install/convars.cfg):cfgadd_ace group.admin cc_boards.view allow add_ace group.admin cc_boards.admin allowview= status, reasons, requests.admin= award, fulfil, revoke. Give your support teamviewonly if you like. - Database. Nothing to do: the tables are created and upgraded when the resource starts. If your database user cannot create tables, run
sql/install.sqlonce by hand. - Start the server and look for this console line:
cc_boards 2.0.0 ready: 6 live board(s), money source: qbmoney sourceisqbon QBCore/Qbox,esxon ESX,exports onlyeverywhere else. Any config mistake prints onecc_boards config:line above it. - First month. Set
ServerConfig.Awards.firstto the month after you install (e.g.'2027-01'), so a part month is never rewarded.
Teach it your payouts
Money boards count payouts by their reason text. Every server's job scripts use different reasons, so after a few days of normal play:
- Run
/boardsadmin reasons. It lists the biggest payouts since the restart that matched no board, e.g.fishing:sellfish (412x, $1,203,400). - Add a pattern to the right board in
server/config.lua:luafishing = { kind = 'money', reasons = { 'fish', 'sellfish' } }, restart cc_boards. Scores count from then on (old payouts are not re-read).
A script that pays without a reason, or pays in items: add one line where it pays instead:
exports.cc_boards:AddScore(source, 'fishing', amount, { reason = 'my_fishing' })Discord (optional)
In server.cfg, with set (never setr, which sends the URL to every player):
set cc_boards_webhook_winners "https://discord.com/api/webhooks/..." # monthly podium, public
set cc_boards_webhook_staff "https://discord.com/api/webhooks/..." # plate/outfit requestsLanguage
Copy locales/en.json to locales/.json, translate the values (keep {placeholders}), then in server.cfg: setr cc_boards_locale "". Missing strings fall back to English.
Upgrading from cc_boards 1.x
2.0.0 keeps every score, award and worn title. At first start it widens two identifier columns (sql/migrations/001_identifier_width.sql, automatic). Config changes:
| 1.x | 2.0.0 |
|---|---|
depended on ox_lib and qbx_core | only cc_lib + oxmysql; remove @ox_lib/init.lua lines you added |
ServerConfig.Boards keys from your city | keep your own config.lua and server/config.lua boards and reasons as they were |
Awards = { day, hour, first } | same, plus enabled |
| new | Capture, Plate, Retention, AdminCommand, StateBag; Config.Keybind, Config.Currency |
Copy your 1.x board lists into the 2.0.0 config files rather than reusing the old files whole, so you get the new options with their comments.
Uninstall
stop cc_boards, remove the ensure line. The cc_boards_* tables can be dropped if you do not want the history.