Admin Panel
The admin panel (called the Mafia panel in-game) lets staff manage clans, contests and players live.
Opening the panel
/cmafiaPermissions
Access is granted only by an exact Discord identifier in server/server.lua:
Config.Admins = {
'discord:123456789012345678',
}- The player must have Discord linked to FiveM. Without a
discord:identifier, access is denied. - Framework admin groups and ACE permissions do not grant access.
- The list is server-only and is never sent to clients.
- Restart the resource after changing the list.
How to find a Discord ID
In Discord, enable Settings → Advanced → Developer Mode, then right-click a user and choose Copy User ID. Add it as 'discord:<id>'.
Tabs
Dashboard
Totals for clans, players and contests, plus a list of active contests.
Clans
- Edit a clan's name, color and logo.
- Add or remove ELO, or set an exact ELO value.
- Add contest points or battle pass XP.
- Give cash to a clan.
- Transfer leadership to another member.
- Reset stats or delete the clan.
Contests
- Force start or force end a contest in any zone.
- Change the contest duration, or add/remove time from a running contest.
- Reset a zone's cooldown.
- Clear the current bounty.
- Skip the next scheduled contest.
- Send a server-wide announcement.
Players
- Bring, go to, revive or heal a player.
- Force a player to join or leave a clan.
- Teleport a player, send them to a zone, or remove them from a contest.
- Award cash or battle pass XP.
Banned Players
Ban a player from contests for a set number of minutes (up to Config.MafiaPanel.MaxBanMinutes), with a reason. Unban from the same tab.
CCTV
View a live camera of an active zone.
Config
Change settings live without restarting: contest duration and cooldown, respawn health/armor/cooldown, spawn protection, ELO values, bounty settings, spectator, kill feed, clan cost and size, and the war cooldown block.
WARNING
Live changes are not saved to config.lua and reset when the resource restarts. Make permanent changes in the file.
Logs
Every admin action is logged with the admin's name. Logs can be cleared from this tab.
Limits
Grants are capped by Config.MafiaPanel in config.lua:
| Option | Default | Limit |
|---|---|---|
MaxCashGrant | 1000000 | Cash per grant |
MaxBattlePassXPGrant | 100000 | XP per grant |
MaxElo | 1000000 | Highest ELO value |
MaxContestTimeAdjustment | 1800 | Seconds added or removed at once |
MaxBanMinutes | 10080 | Longest ban (7 days) |
