Halloween Edition36 maps, limited runlimited runShop the drop
Chapter 13 of 17The Server Handbook for FiveM

Admins, ACE permissions and moderation

In short

Two permission systems run side by side: txAdmin permissions for the web panel and in-game admin menu, and ACE permissions for commands and scripts.

server.cfg — groups, inheritance and people
# groups
add_ace group.admin command allow
add_ace group.admin command.quit deny
add_ace group.mod command.kick allow
add_principal group.admin group.mod

# people
add_principal identifier.fivem:1 group.admin
add_principal identifier.discord:123456789012345678 group.mod

# check from the console
test_ace group.mod command.kick
Checking a permission in a script (server)
RegisterCommand('kickidle', function(source)
    if source ~= 0 and not IsPlayerAceAllowed(source, 'command.kick') then return end
    -- ...
end, false)
IdentifierAlways there?Notes
licenseYesRockstar licence — the stable key for players
license2UsuallySecond licence (for example Steam users)
discordIf Discord is runningNeeded for Discord roles and whitelists
fivemIf logged in to Cfx.reUsed by txAdmin
steamOnly with steam_webApiKeyAnd Steam running
ipYesChanges; never use alone
  • One txAdmin account per staff member with only the permissions their role needs.
  • txAdmin bans store identifiers and hardware tokens and log who banned and why.
  • Write down punishments and an appeal route, and link them from Discord.
  • Separate moderation powers from infrastructure access (files, database, host).

The Server Handbook for FiveM

This chapter is one of 17. The handbook also carries the console command and convar cheat sheets, a glossary and the official references every chapter is checked against.

Open the handbook