EN · $ USD
FiveM and Roleplay Servers

How to Give Admin in FiveM with ACE Permissions

7 min read Updated: OyunBulut technical team

In short

In FiveM, admin permissions are granted with the ACE system: add_ace gives a group a permission, and add_principal adds a player's identifier to that group. For example, put add_ace group.admin command allow and add_principal identifier.fivem:123456 group.admin in server.cfg, restart the server, and the player can use every command. Larger teams set up inheriting groups such as moderator, admin and founder.

In this guide
  1. The three concepts of the ACE system
  2. Step by step: Adding your first admin
  3. Which identifier should you use?
  4. Building a group hierarchy
  5. Working with framework admin roles
  6. Best practices for your staff team
  7. Common mistakes
  8. Next step

Giving admin permissions in FiveM is done with FXServer's built-in ACE (Access Control Entry) system. It works in two steps: first you tell a group what it's allowed to do (add_ace), then you add the player to that group by their identifier (add_principal). This guide explains how these two commands work, which player identifier you should use, how to build a group hierarchy from moderator up to founder, and how to keep ACE in sync with the admin roles of frameworks like ESX, QBCore and Qbox.

The three concepts of the ACE system

  • Principal: The thing that holds a permission. It can be a player identifier (identifier.license:...), a group (group.admin) or a resource (resource.txAdmin).
  • Object: What the permission applies to. Commands are written like command.kick; writing just command covers every command. Scripts can also define their own objects (for example, vMenu.Everything).
  • allow / deny: Grants or explicitly blocks a permission. For the same object, deny takes priority over allow.

The general syntax of the commands is:

add_ace <principal> <object> <allow|deny>
add_principal <child_principal> <parent_principal>

In an add_principal line, the first principal inherits all the permissions of the second. That sentence is the key to the whole hierarchy.

Step by step: Adding your first admin

  1. Find the player's identifier. While the player is connected, open their player window in txAdmin or type status in the server console. You'll see identifiers such as license, fivem, discord and steam.
  2. Write the permission lines. To keep things tidy, put them in a separate permissions.cfg file and load it in server.cfg before your ensure lines:
# server.cfg
exec permissions.cfg
# permissions.cfg
add_ace group.admin command allow
add_ace group.admin command.quit deny
add_principal identifier.fivem:1234567 group.admin
  1. Restart the server or type exec permissions.cfg in the console. ACE commands are also processed at runtime, but they need to be in the file to persist. If you use a managed FiveM server, you can edit these files in the panel's file manager and restart the server from the panel.
  2. Verify. Type test_ace identifier.fivem:1234567 command.kick in the console to see the result; the list_principals and list_aces commands list every definition.

The command.quit deny line is a deliberate security measure: no one, not even an admin, can shut down the server from in-game. Likewise, keeping command.add_ace and command.add_principal for the founder only stops an admin who abuses their role from granting themselves new permissions.

Which identifier should you use?

IdentifierSourceAssessment
license:Rockstar game licensePermanent and present for every player; the safest default
fivem:Cfx.re accountPermanent if the player signed in with a Cfx.re account; easy to read
discord:Linked Discord accountMay be missing if the Discord client isn't running; don't rely on it alone
steam:Steam accountOnly present when Steam is running and a Steam Web API key is set on the server
ip:Connection addressCan change and can be shared; never use it for permissions

Use the license or fivem identifier for critical roles. Adding one person to the same group under several identifiers is fine, and it keeps them from losing permissions when one identifier is missing.

Be careful when copying identifiers by hand: license values are long hexadecimal strings, and a single wrong character means the permission won't work at all. Copying the identifier from the txAdmin player window is safer than typing it from console output.

Building a group hierarchy

On a growing server, giving everyone full permissions is the most common mistake. A healthier setup is groups that inherit from the lower role up to the higher one:

# Moderator: only the commands they need
add_ace group.moderator command.kick allow
add_ace group.moderator command.tp allow

# Admin gets everything a moderator has, plus extra commands
add_principal group.admin group.moderator
add_ace group.admin command.ban allow
add_ace group.admin command.car allow

# Founder gets everything an admin has and access to all commands
add_principal group.founder group.admin
add_ace group.founder command allow
add_ace group.founder command.quit deny

# People
add_principal identifier.license:aaaaaaaa group.founder
add_principal identifier.fivem:1234567 group.admin
add_principal identifier.fivem:7654321 group.moderator

The command names here are examples; use the command names your own scripts define. You can usually find which ACE object a script checks in its README file or on the line that calls IsPlayerAceAllowed.

Granting permissions to resources

Some scripts, such as admin menus that manage permissions from in-game, run ACE commands themselves. For that, you grant the permission to the resource itself:

add_ace resource.adminmenu command.add_ace allow
add_ace resource.adminmenu command.add_principal allow
add_ace resource.adminmenu command.remove_principal allow

Only grant this to scripts you trust and whose source you know; a malicious script that can manage permissions can take over the entire server.

Working with framework admin roles

QBCore

QBCore reads its own permission levels (god, admin and mod by default) through ACE. So all you need to do is link the ACE group to QBCore's principals:

add_principal qbcore.god group.admin
add_principal qbcore.god qbcore.admin
add_principal qbcore.admin qbcore.mod
add_principal identifier.fivem:1234567 qbcore.god

The levels come from the permission list in qb-core/config.lua; if you add new ones, define them on the ACE side with the same name.

Qbox

Qbox mostly uses ACE groups directly for permission checks. Once you set up standard groups like group.admin, most admin commands work with that structure; check the docs of any extra scripts for the group names they expect.

ESX

ESX Legacy stores a player's group in the users table in the database (the group column), and you change it from the server console with setgroup <player_id> admin. Newer versions can also add this group to the player as an ACE principal. Still, the safest approach is to define the ACE side separately for standard FiveM commands and non-ESX scripts: keep the ESX group and the ACE group under the same name (for example, admin) so the two systems don't conflict.

txAdmin

txAdmin panel permissions are independent of ACE and are stored in txAdmin's own admin list. Giving a moderator ban rights in the panel doesn't automatically create an in-game ACE permission, and vice versa. We cover panel setup in our txAdmin setup and usage guide.

Best practices for your staff team

Even a technically correct permission setup puts the server at risk if it's poorly managed. As your community grows, these rules make your life easier:

  • Principle of least privilege: Each role should have only the commands it needs to do its job. Support staff can use kick and teleport; commands that spawn money or vehicles should be limited to senior roles.
  • One comment line per person: In permissions.cfg, write the person's Discord name and the date they were given access above each add_principal line. Finding and removing someone who left the team then takes seconds.
  • Remove permissions in the file too: In the console, remove_principal identifier.fivem:1234567 group.admin revokes the permission instantly; then delete the line from the file as well, or the permission comes back on the next restart.
  • Log money and item commands: Sending admin commands to a Discord webhook is the easiest way to catch abuse early.
  • Back up the permissions file: permissions.cfg is one of the most critical files on the server; make a copy before you change it.
# --- Staff team ---
# Founder - Discord: founder_name - 2026-12
add_principal identifier.license:aaaaaaaa group.founder
# Admin - Discord: admin_name - 2026-12
add_principal identifier.fivem:1234567 group.admin

This layout lets you see at a glance who can access what when your staff changes, and helps you quickly identify which account is responsible if permissions are ever abused.

Common mistakes

  • The line is there but the permission doesn't work: You probably forgot the identifier prefix. The correct format is identifier.license:xxxx, not just license:xxxx.
  • The permission disappears after a restart: You only typed the command in the console; add it to a .cfg file to make it stick.
  • exec order: Load permissions.cfg before any resources that check permissions start.
  • command allow for everyone: This gives players access to server commands; grant the broadest permission to the founder group only.

To see where every setting lives, check out server.cfg settings explained line by line.

Next step

The easiest place to set up permissions is an environment where you can edit server.cfg and permissions.cfg straight from the panel and restart the server with one click. OyunBulut FiveM servers come with automatic setup and DDoS protection; for servers starting out with a small team and a light script set, the OB-FIVEM-2 FiveM server plan with 2 CPU cores, 4 GB DDR5 RAM and 50 GB NVMe is a good start. If you're planning for more players and scripts, compare the other sizes on the FiveM server plans page, and open a support ticket if you get stuck.

Frequently asked questions

How do I give a player admin in FiveM?

Add the lines add_ace group.admin command allow and add_principal identifier.license:PLAYER_ID group.admin to server.cfg or to a .cfg file loaded with exec, then restart the server.

What's the difference between add_ace and add_principal?

add_ace gives a principal (a group, player or resource) permission for a specific object. add_principal places one principal under another so it inherits all of that principal's permissions.

Which identifier is safest for admin permissions?

The license and fivem identifiers are the most reliable because they're permanent. discord and steam identifiers may be missing if the related app isn't running, and the ip identifier should never be used for permissions.

I granted the permission but the command doesn't work. Why?

The most common cause is a missing identifier prefix; the correct format is identifier.license:xxxx. Use the test_ace command to check whether the permission is actually defined.

Is a txAdmin admin also an admin in-game?

No. txAdmin panel permissions are stored in its own admin list and are independent of ACE; you need separate ACE definitions for in-game commands.

For this guide

Recommended plans

OB-FIVEM-2 is a balanced FiveM plan for servers starting out with a small staff team and a light script set, where you can edit permission files from the panel and test them quickly.

OB-FIVEM-2

Recommended

4 GB DDR5 RAM

$11.01/mo

+VAT

  • Processor2 CPU
  • Disk50 GB NVMe
  • LocationIstanbul
  • DDoS
  • Automatic Setup

2 GB DDR5 RAM

$7.86/mo

+VAT

  • Processor2 CPU
  • Disk40 GB NVMe
  • LocationIstanbul
  • DDoS
  • Automatic Setup

6 GB DDR5 RAM

$15.73/mo

+VAT

  • Processor4 CPU
  • Disk60 GB NVMe
  • LocationIstanbul
  • DDoS
  • Automatic Setup

FiveM — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.