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_lib | 1.12.0 or newer (free, required) |
oxmysql | required (scores and rewards are stored in MySQL) |
| Framework | QBCore, Qbox, ESX Legacy 1.9+, ox_core, ND_Core or standalone — detected by cc_lib |
| Menu | ox_lib, qb-menu, esx_context or none (built-in native menu) — detected by cc_lib |
Install (5 minutes)
- Drop the
cc_boardsfolder into yourresources. - In
server.cfg, afteroxmysqlandcc_lib:cfgensure cc_boards add_ace group.admin cc_boards.view allow add_ace group.admin cc_boards.admin allow - Start the server. The tables are created automatically (or run
sql/install.sqlyourself). - In game:
/boards. Staff:/boardsadmin status. - After a few days of play, run
/boardsadmin reasonsand add your scripts' payout reasons toserver/config.lua→ServerConfig.Boards.
Full steps, webhooks and upgrading from 1.x: INSTALL.md.
Documentation
| File | What is in it |
|---|---|
| INSTALL.md | Install, upgrade from 1.x, webhooks, language |
| CONFIG.md | Every option in config.lua and server/config.lua |
| EXPORTS.md | Exports, hooks, state bag, events — with examples |
| COMPATIBILITY.md | Frameworks, menus and scripts, and how each is detected |
| TROUBLESHOOTING.md | Console/F8 errors and their fixes, FAQ |
Commands
| Command | Who | Does |
|---|---|---|
/boards | everyone | Opens the leaderboards and "My rewards" |
/boardsadmin status | cc_boards.view | Live boards, pending writes, next reward date |
/boardsadmin reasons | cc_boards.view | Biggest payouts that matched no board since the restart |
/boardsadmin requests | cc_boards.view | Open plate/outfit requests |
/boardsadmin award <YYYY-MM> | cc_boards.admin | Give a finished month's rewards now (safe to repeat) |
/boardsadmin fulfil <id> | cc_boards.admin | Mark a plate/outfit reward as set up |
/boardsadmin revoke <id> | cc_boards.admin | Take 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.