Admins and permissions on your FiveM server: txAdmin and ACE

Give co-admins their own txAdmin account and in-game admin rights with add_ace and add_principal, including ESX, QBCore and Qbox.

EliteStarHosting Team2 November 20263 min read

You manage admin rights on a FiveM server in two places:

  • txAdmin: who can log in to txAdmin and what they can do there, such as kicking players or restarting the server.
  • ACE permissions in your server.cfg: which commands someone can use in the game, such as your framework's admin commands.

Want to give someone access to the game panel itself? Use subusers.

Co-admins in txAdmin

  1. Click Tx Admin at the top of your server page to open txAdmin.
  2. Go to Admins and, on the Admin Manager page, create a separate account for each co-admin.
  3. Only give the permissions they need. A moderator, for example, only needs to warn, kick and ban players.

Be careful with all permissions at once (all_permissions), managing admins and the server.cfg editor. With that last one, someone can read your server.cfg, which contains your license key.

In-game admin rights with ACE

ACE works with groups. Many server.cfg files already contain lines like these:

add_ace group.admin command allow
add_ace group.admin command.quit deny
add_principal identifier.fivem:1234567 group.admin

The first line gives the group group.admin all commands. The second only forbids quit, which shuts down the server. The third line puts a player in the group. Replace fivem:1234567 with one of that player's identifiers:

  • fivem: belongs to a Cfx.re account.
  • license: belongs to a Rockstar account.
  • discord: belongs to a Discord account.

Always put identifier. in front, as in the example.

Finding an identifier

In txAdmin, open Players and click the player. The window that opens shows that player's identifiers. Copy one, for example the one that starts with license:.

Adding the lines

  1. In the game panel, go to server.cfg editor and click Manual Edit.
  2. Put your add_principal line below the add_ace lines. Not there yet? Then add the whole example.
  3. Click Save and restart your server.

The server.cfg editor with the Manual Edit and Save buttons

Careful: your server.cfg contains your license key. Never share the file or a screenshot of it, not even for a support question or on Discord.

Did you install your server with a recipe in txAdmin? Then txAdmin has already put your own Cfx.re account in group.admin with an add_principal line like this.

ESX, QBCore and Qbox

  • ESX keeps a group for each player, such as user, admin or owner, and puts the player in the matching ACE group itself when they join. Make someone admin while they are online: type setgroup 1 admin in the console, with the ID txAdmin shows for the player instead of 1.
  • QBCore uses the groups qbcore.god, qbcore.admin and qbcore.mod in its txAdmin recipe. Put the player in one of them, for example with add_principal identifier.fivem:1234567 qbcore.admin.
  • Qbox has the groups group.admin, group.mod and group.support, in the file permissions.cfg. Add a moderator with add_principal identifier.fivem:1234567 group.mod.

Not working?

  • The server.cfg is only read when your server starts, so restart after every change.
  • Check the identifier: copied exactly, with identifier. in front and no spaces.
  • Type test_ace identifier.fivem:1234567 command in the console. The server then shows whether that identifier has access.