⚙️CONFIGURATION GUIDE
The main configuration is handled in shared/config.lua. Below is a breakdown of every section and variable.
🔧 GENERAL SETTINGS
Config.ServerName
Display name for your server
"C2 Roleplay"
Config.Framework
Framework type (QBCore, ESX, or QBox)
"QBCore"
Config.OpenKey
Key to open the scoreboard
"F10"
Config.CloseKey
Key to close (ESC by default)
322
Config.BotToken
Discord bot token for fetching avatars (keep private!)
"YOUR_DISCORD_BOT_TOKEN"
Config.SteamAPIKey
Steam API key for Steam avatars (keep private!)
"YOUR_STEAM_API_KEY"
Config.AvatarSource
Choose avatar source (discord, steam, default, none)
"discord"
Config.DefaultAvatar
Path for default image if no avatar found
"./assert/defaultavatar.png"
Config.PlayerListEnable
Enable or disable player list panel
true
Config.MaxPlayers
Maximum player count displayed
200
💰 ROBBERIES CONFIGURATION
Control which robberies are shown, how many police are required, and what text or image appears.
Control which robberies are shown, how many police are required, and what text or image appears.
Each robbery has:
enabled→ true/falserequired→ number of police requiredJob→ job name used to check requirementsunlockedText/lockedText→ messages shown to playersURL→ image path or web URL for display
Example:
🧱 JOB CONFIGURATION
Define which jobs appear on the scoreboard and link them with map coordinates.
Each job includes:
label→ friendly display namename→ framework job nameURL→ image to represent the jobcoords→ map position for job location button
Example:
⚠️ Important: ox_lib must be started before c2_scoreboard for the resource to function correctly.
🚀 COMMANDS & SHORTCUTS
Open scoreboard
F10
Close scoreboard
ESC (322)
Last updated