Skip to content

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

  1. Requirements running first. oxmysql and cc_lib (1.12.0+) must start before cc_boards:
    cfg
    ensure oxmysql
    ensure cc_lib
    ensure cc_boards

    If you use ox_lib for menus, start it before cc_lib.

  2. Copy the cc_boards folder into your resources. Keep the folder name cc_boards: other scripts call exports.cc_boards.
  3. Permissions (paste from install/convars.cfg):
    cfg
    add_ace group.admin cc_boards.view  allow
    add_ace group.admin cc_boards.admin allow

    view = status, reasons, requests. admin = award, fulfil, revoke. Give your support team view only if you like.

  4. Database. Nothing to do: the tables are created and upgraded when the resource starts. If your database user cannot create tables, run sql/install.sql once by hand.
  5. Start the server and look for this console line:
    cc_boards 2.0.0 ready: 6 live board(s), money source: qb

    money source is qb on QBCore/Qbox, esx on ESX, exports only everywhere else. Any config mistake prints one cc_boards config: line above it.

  6. First month. Set ServerConfig.Awards.first to 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:

  1. Run /boardsadmin reasons. It lists the biggest payouts since the restart that matched no board, e.g. fishing:sellfish (412x, $1,203,400).
  2. Add a pattern to the right board in server/config.lua:
    lua
    fishing = { kind = 'money', reasons = { 'fish', 'sellfish' } },
  3. 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:

lua
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):

cfg
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 requests

Language

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.x2.0.0
depended on ox_lib and qbx_coreonly cc_lib + oxmysql; remove @ox_lib/init.lua lines you added
ServerConfig.Boards keys from your citykeep your own config.lua and server/config.lua boards and reasons as they were
Awards = { day, hour, first }same, plus enabled
newCapture, 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.