Skip to content

cc_boards — Leaderboards | Code Cartel

All-time and monthly leaderboards for any FiveM roleplay server, built from the money your jobs already pay, with cosmetic monthly rewards (titles, crests, custom plates, outfits). Nothing resets, and

All-time and monthly leaderboards for any FiveM roleplay server, built from the money your jobs already pay, with cosmetic monthly rewards (titles, crests, custom plates, outfits). Nothing resets, and nothing it gives is money, an item or a level.

  • Boards from payouts you already make. QBCore, Qbox and ESX payouts are matched by their reason (paycheck, fish, deliver...). Refunds, transfers, deposits and admin money never count, so nobody climbs a board by moving money in a circle.
  • Any script can score. One line from any server script: exports.cc_boards:AddScore(source, 'fishing', 250). Works on ox_core, ND and standalone too.
  • This month, last month, all time for every board, with your own rank even outside the top 10.
  • Monthly rewards by rank, given automatically on the 1st: titles players can wear (exported and on a state bag for your HUD), crests, and plate/outfit rewards that staff fulfil from a Discord embed — or that your own script fulfils through a hook.
  • Optional boards for Code Cartel products: racing points (cc_raceleague) and business takings (cc_business). Hidden automatically when those are not installed.
  • Secure by design: the client only sends indexes and award ids; every action is gated, rate-limited and re-checked server-side. Nobody can wear a title they did not win or claim a reward twice.
  • 0.00 ms client at rest (no client threads at all); the server folds scores in memory and writes them once a minute in one query.
  • Escrowed with open config: both configs, locales, SQL, custom/ hooks and the money adapter are editable.

Requirements

cc_lib1.12.0 or newer (free, required)
oxmysqlrequired (scores and rewards are stored in MySQL)
FrameworkQBCore, Qbox, ESX Legacy 1.9+, ox_core, ND_Core or standalone — detected by cc_lib
Menuox_lib, qb-menu, esx_context or none (built-in native menu) — detected by cc_lib

Install (5 minutes)

  1. Drop the cc_boards folder into your resources.
  2. In server.cfg, after oxmysql and cc_lib:
    cfg
    ensure cc_boards
    add_ace group.admin cc_boards.view  allow
    add_ace group.admin cc_boards.admin allow
  3. Start the server. The tables are created automatically (or run sql/install.sql yourself).
  4. In game: /boards. Staff: /boardsadmin status.
  5. After a few days of play, run /boardsadmin reasons and add your scripts' payout reasons to server/config.lua → ServerConfig.Boards.

Full steps, webhooks and upgrading from 1.x: INSTALL.md.

Documentation

FileWhat is in it
INSTALL.mdInstall, upgrade from 1.x, webhooks, language
CONFIG.mdEvery option in config.lua and server/config.lua
EXPORTS.mdExports, hooks, state bag, events — with examples
COMPATIBILITY.mdFrameworks, menus and scripts, and how each is detected
TROUBLESHOOTING.mdConsole/F8 errors and their fixes, FAQ

Commands

CommandWhoDoes
/boardseveryoneOpens the leaderboards and "My rewards"
/boardsadmin statuscc_boards.viewLive boards, pending writes, next reward date
/boardsadmin reasonscc_boards.viewBiggest payouts that matched no board since the restart
/boardsadmin requestscc_boards.viewOpen plate/outfit requests
/boardsadmin award <YYYY-MM>cc_boards.adminGive a finished month's rewards now (safe to repeat)
/boardsadmin fulfil <id>cc_boards.adminMark a plate/outfit reward as set up
/boardsadmin revoke <id>cc_boards.adminTake an award back (a worn title stops showing)

All commands also work from the server console. Command names are configurable.

Support

Read TROUBLESHOOTING.md first; it covers the questions we get most. Then open a ticket in The Code Cartel Discord with your server console output from the start of cc_boards and the output of /boardsadmin status.