Skip to content
FIVECRATE

FiveM ACE Permissions Guide: add_ace and add_principal

FiveM ACE permissions explained: add_ace, add_principal, remove_ace, test_ace and se_debug, with official examples, deny rules and Access denied fixes.

Server administrator reviewing a hierarchy of user cards and permission nodes with one green approval path
Author: FiveCrate
Published:
Updated:
Read time: 19 min
Applies to
FiveM Legacy and FiveM for GTAV Enhanced servers; source details from the public FXServer code as of 2026-11-17 and txAdmin as of 2026-10-23
Last verified

Direct Answer

FiveM ACE permissions are the access control list built into FXServer. add_ace allows or denies an object such as command.ensure for a principal, and add_principal makes one principal inherit from another. To make an admin, keep add_ace group.admin command allow in server.cfg, add add_principal identifier.fivem:1 group.admin with the player’s real identifier in place of fivem:1, then restart the server or type both lines in the server console. Confirm the result with test_ace. “Access denied for command” means none of the player’s principals reaches an allow entry for that command, or a deny entry matched.

What FiveM ACE permissions are

FXServer has its own access control list (ACL). Each rule in it is an access control entry, or ACE. The official command reference gives the syntax as add_ace [principal] [object] [allow|deny], so every ACE has three parts:

PartWhat it isIn the docs example
PrincipalWho the rule applies togroup.admin
ObjectWhat the rule protectscommand.potato
Access typeallow or denyallow

The docs example behind the table is add_ace group.admin command.potato allow.

A second command connects principals. The reference describes add_principal [child_principal] [parent_principal] in one line: “Sets a principal to inherit from another principal.” The same mechanism puts a player into a group and lets one group inherit from another.

Three properties explain most surprises:

  • The list lives in memory. The Cfx.re cookbook note on the ACL says there is “no persistence layer at all”. server.cfg is a file of console commands, so its lines apply again on every start. A line typed into the console is gone after a restart.
  • Names are not case-sensitive. The FXServer source converts every principal and object name to lower case when it is created.
  • group.admin is a convention. It is the name the official example server.cfg uses, and its rights come from the add_ace lines in that file: a check that matches no ACE is refused. The entries the server source creates for itself belong to other principals, such as system.console (every command) and builtin.everyone (the help command).

Statements about the FXServer source in this guide refer to the public citizenfx/fivem repository as of November 17, 2026. The platform section near the end explains what that covers on FiveM for GTAV Enhanced.

Principals: identifier, group.admin, resource and builtin.everyone

A principal is any name that ACEs can be attached to. A 2018 guide on the Cfx.re forum describes principals as player identifiers or “made up identifiers” such as group.admin. These are the forms you will meet:

PrincipalStands forNotes
identifier.<type>:<value>One playerThe server creates one principal for every identifier a connected player has
player.<server ID>The player holding that server IDThe cookbook example adds it to a job group when a job is assigned and removes it when the player drops
group.admin, group.mod or any other nameA groupNo setup needed: use the name in add_ace or add_principal
resource.<resource name>A resource running a command through ExecuteCommandNeeds its own ACEs, covered below
builtin.everyoneEveryoneIncluded in every permission check
system.consoleThe server console and RConAllowed every command from the start

RCon commands run as system.console, so the RCon password is equal to full command access. The command reference states that RCon is disabled while rcon_password is unset.

Which player identifiers work in add_principal

The Cfx.re docs list six identifier types. Each one a player has becomes an identifier. principal:

TypeProviderPrincipal form shown in official sources
steamSteamidentifier.steam:110000112345678
discordDiscordidentifier.discord:111111111111111111
licenseRockstar Online Servicesidentifier.license:xxxxxxx
license2Rockstar Online ServicesNone shown
fivemCfxidentifier.fivem:1
ipIP AddressNone shown

The values above are the placeholders printed in the Cfx.re docs, the txAdmin source and the QBCore docs. Use the player’s real value. An identifier is written as type, colon, value: the docs example prints fivem:123456789. The principal is identifier. followed by that whole string, which is also how to write the two types with no printed example.

  • license2: the docs describe it as the Rockstar license “for people who use Steam” and add that it can hold the same value as license.
  • steam: steam_webApiKey stopped working on November 4, 2026. Per the docs, players who have linked a Steam account to their Cfx account have the steam: identifier. If your principals use identifier.steam:, the docs tell you to set sv_enforceSteamAuth true, which makes linking mandatory and needs server version 38004 or later. The Steam identifier guide covers the switch.
  • Where to find the value: in txAdmin, open the player and select the IDs tab. The QBCore docs note that a player who is connected shows all available identifiers there. Without txAdmin, run status in the server console. The docs say this command lists each player’s primary identifier and server ID. It is provided by the rconlog resource, which the official example server.cfg starts with ensure rconlog.

Objects and command.<name>: why FiveM prints “Access denied for command”

Before the server runs any command, it checks the object command.<name>. If the check fails, it prints Access denied for command <name>. and nothing runs.

Where a player sees that message depends on the platform. In the FiveM Legacy server source, the text printed while a player’s command runs is sent back to that player, and the chat resource in FXServer’s system resources prints it on the client and adds it to the chat. For FiveM for GTAV Enhanced, the docs list a breaking change: “Remote commands no longer return the full log to the client”. A refused player there may see nothing, so check from the server console.

Objects are matched together with their dotted parents. A comment in the source describes it: object.parent.child is checked as object.parent.child, object.parent and object. An ACE on command therefore covers every command, and an ACE on command.quit covers only quit.

Whether a script’s command needs an ACE depends on how the script registered it. RegisterCommand takes a third argument named restricted:

  • false: the server adds an allow entry for builtin.everyone, so every player can run the command.
  • true: no such entry is added. In the docs’ words, the user cannot run the command “unless they have the ‘command.commandName’ ACL object allowed to one of their identifiers”.

Objects do not have to be commands. A resource can ask the ACL about any name with the IsPlayerAceAllowed native. The cookbook uses a jobProbe.mechanic object this way, and the Qbox file shown later defines objects named admin, mod and support.

The chat resource in FXServer’s system resources reads the same objects. It offers a command as a chat suggestion only to players who pass IsPlayerAceAllowed for command.<name>.

How allow, deny and inheritance are decided

The permission check in the FXServer source works in four steps:

  1. It collects the principal being checked, every principal it inherits from (followed upwards through each parent), and builtin.everyone.
  2. It expands the object into itself and its dotted parents.
  3. It reads every ACE that links those principals to those objects. An allow marks the request as allowed. A deny ends the check with a refusal; the source comment reads “deny trumps all”.
  4. If no ACE matched, the answer is no.

Four practical rules follow:

  • Anything not allowed is refused. You never need a deny line just to keep ordinary players out.
  • A deny beats an allow, in any order. The official example relies on this: add_ace group.admin command allow grants every command, and add_ace group.admin command.quit deny takes quit back. The reverse does not work. A deny on command cannot be reopened with an allow on command.<name>, because the deny on the parent object still matches.
  • A deny on a parent principal also blocks every principal that inherits from it. Parents are part of the same check. In the Qbox file shown later, group.admin inherits from group.mod, so a deny placed on group.mod also blocks admins.
  • A player is checked once per principal. The server tests each of the player’s principals in turn and stops at the first one that passes. A deny placed on one identifier does not block an ACE the player still receives through another identifier or through builtin.everyone.

The 2018 forum guide explains deny with a “first come first serve principle”, in which the first state set cannot be overwritten later. The current source does not look at the order of entries. Treat the rules above as the ones that apply today.

add_ace, add_principal, remove_ace, remove_principal, test_ace and se_debug: command reference

add_ace [principal] [object] [allow|deny]
remove_ace [principal] [object] [allow|deny]
add_principal [child_principal] [parent_principal]
remove_principal [child_principal] [parent_principal]
test_ace [principal] [object]
list_aces
list_principals
se_debug <true|false>
CommandWhat the docs say it doesAvailable in
add_ace“Adds an access control entry to the server’s access control list.”Server
remove_ace“Removes a specified ACE from the server’s access control list.”Server
add_principal“Sets a principal to inherit from another principal.”Server
remove_principal“Removes a specified principal inheritance entry.”Server
test_ace“Tests if a principal is allowed or denied access to a given object.”Server and client
list_acesLists every ACE with its principal, object and resultServer and client
list_principalsLists which principals inherit from whichServer and client
se_debugTurns on “verbose logging for security features (like the ACL)”Server and client

The first four are compiled into the server only. The last four also exist in the game client, where the docs class them as developer commands. Use the server console to inspect your server: the client commands read the client’s own list, and the source function that would load a copy of the server’s list is an empty stub.

How to make a player admin with add_ace and add_principal

  1. Open server.cfg. It is in your server data folder. In txAdmin, use CFG Editor in the server menu.
  2. Check that the admin group has ACEs. The official example file and the txAdmin default recipes for Legacy and Enhanced all contain these two lines. Add them if your file has none:
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don't allow quit
  1. Find the player’s identifier, as described in the identifier section above.
  2. Add the player to the group. This is the docs’ own line. Replace fivem:1 with the real identifier:
add_principal identifier.fivem:1 group.admin # add the admin to the group
  1. Apply the change. Restart the server. To apply it at once, also type the lines into the server console (txAdmin: Live Console).
  2. Confirm it. Run list_principals and look for your identifier on the left of group.admin. Then run test_ace with that principal and a command object such as command.ensure. A result ending in = true means the principal may run it.

Servers deployed from a txAdmin recipe get step 4 automatically for one account. The recipes end their admin block with {{addPrincipalsMaster}}. The deployer replaces it with one add_principal identifier.<id> group.admin line for each identifier saved on the txAdmin account that runs the deployment. If that account has no identifiers, the deployer writes a comment instead, beginning # Deployer Note: this admin master has no identifiers to be automatically added. The txAdmin recipe guide covers the deployer itself.

Staff groups with inheritance: a real permissions.cfg

The Qbox recipe keeps its ACL lines in a separate file, which its server.cfg loads with exec permissions.cfg. On November 20, 2026 the file contained this group setup:

# Ace Groups
add_ace group.admin admin allow
add_ace group.mod mod allow
add_ace group.support support allow

# Inheritance
add_principal group.admin group.mod
add_principal group.mod group.support

Read it from the bottom up. group.mod inherits from group.support, and group.admin inherits from group.mod. Because inheritance is followed through every parent, a member of group.admin passes checks for admin, mod and support, while a member of group.support passes only support.

To give a lower group single commands instead of everything, add one ACE per command object, in the form of the docs example add_ace group.admin command.potato allow.

The other frameworks use the same commands:

  • ESX Legacy: the recipe’s server.cfg contains add_principal group.admin group.user.
  • QBCore: its docs use add_principal qbcore.god group.admin and state that qbcore.god and group.admin share the same permissions.
  • Qbox: its docs mark admin commands as restricted to players in the group.admin permission group.

The framework-specific steps, including in-game commands such as ESX’s /setgroup, are in how to make yourself admin on QBCore, Qbox and ESX.

Give a resource permission to run commands

The command reference says a resource can execute console commands through EXECUTE_COMMAND only “if a resource is permitted by the ACL”. The resource runs the command as the principal resource.<resource name>.

The cookbook marks the needed lines as “required for access to ExecuteCommand”. The ESX Legacy recipe shows the pattern on a real resource:

add_ace resource.es_extended command.add_ace allow
add_ace resource.es_extended command.add_principal allow
add_ace resource.es_extended command.remove_principal allow
add_ace resource.es_extended command.stop allow

Two details help here:

  • A resource’s own commands need no line. The source always allows a resource to run the commands it registered itself.
  • Narrow grants are safer. The Qbox recipe gives its core add_ace resource.qbx_core command allow. Since command covers every command, that puts the resource on the same footing as the console. Prefer the narrow form when a resource only manages permissions, and check what a resource executes before adding a broad line for it. For reviewing a resource’s code, see how to find and remove backdoors in FiveM resources.

Remove a permission with remove_ace and remove_principal

The docs give one example for each command:

remove_ace identifier.steam:110000112345678 command.apple deny
remove_principal identifier.steam:110000112345678 group.admin
  • remove_ace needs all three parts. The source deletes only entries whose principal, object and access type all match. An allow entry is not removed by a remove_ace line that ends in deny.
  • Delete the line from server.cfg too. A removal typed into the console lasts until the next start, when the file adds the entry again.

Check permissions with test_ace, list_aces, list_principals and se_debug

Run these in the server console.

test_ace answers one question. The docs example is test_ace group.admin command.adminstuff. The source prints the answer as <principal> -> <object> = true or = false. It tests the single principal you name, with its parents and builtin.everyone. To test a player, name the identifier you used in add_principal.

list_principals prints every inheritance link as <child> <- <parent>. The docs show this sample:

identifier.steam:110000111111111 <- group.admin
identifier.steam:110000111111112 <- group.moderator

list_aces prints every entry. The docs sample:

builtin.everyone -> command.freecam = ALLOW
group.admin -> command.testbed = DENY

se_debug true logs every check as it happens, which the docs call useful “to see why some people do or don’t have access to certain commands”. Their sample output:

TEST ACL [system.console -> command.resmon] ACE [system.console command] -> ALLOW
TEST ACL [system.console -> command.resmon] -> ALLOW
Result in the logMeaning in the source
ALLOWAn allow entry matched and no deny did
DENYNo entry matched
DENY-ALWAYSA deny entry matched

Two notes on reading the log:

  • One line per principal. A player is checked once for each principal, so a DENY for one identifier followed by an ALLOW for another is normal.
  • The ACE [...] line is a developer message. The source prints it only while the developer variable is above 0. The client console page gives that variable’s usage as developer <true|false>, while the source declares it as an integer, so the two official sources differ on the value to enter. The code compares the value with 0, so the integer form, developer 1, is the one that matches the source.

Set se_debug false when you are done.

ACE permissions on FiveM Legacy and FiveM for GTAV Enhanced

The commands and server.cfg lines above are the same on both platforms. The official default recipes for Legacy and for Enhanced carry the same two add_ace group.admin lines and the same {{addPrincipalsMaster}} placeholder. The command reference lists the access control commands in its general part, not under “Console commands exclusive to FiveM for GTAV Enhanced”.

The source-level details in this guide (the order of the permission check, the se_debug result names, the exact messages) come from the public citizenfx/fivem repository, whose README describes the code as FiveM for “Grand Theft Auto V Legacy”, RedM and FXServer. Read them as a description of FiveM Legacy servers, and confirm results on an Enhanced server with test_ace and se_debug.

The docs name three differences that touch permissions.

Developer mode on the client. The client-side copies of test_ace, list_aces, list_principals and se_debug are developer commands:

PlatformHow the docs say developer mode is enabled on the client
FiveM LegacyLaunch the client with +set moo 31337, or run a non-production update channel such as Beta or Latest
FiveM for GTAV EnhancedSet sv_devMode true on the server

sv_devMode limits the server to 8 clients, and the docs say not to enable it in production.

Server IDs. On Legacy, the docs say IDs “are only ever incremented and never reused for the next player”. On Enhanced, “an ID is released when a player disconnects and can be reused by the next player who connects”. A player.<server ID> principal that a script adds and never removes would pass to the next player who receives that ID. Remove it when the player drops, as the cookbook example does.

Command output. On Enhanced, a player whose command is refused may not see Access denied for command, because remote commands no longer return the full log to the client. When a staff command does nothing there, run the checks under Troubleshooting from the server console.

Troubleshooting

“Access denied for command” for a staff member

The command exists, and none of the player’s principals passed the check for command.<name>. Work through it in this order:

  1. Run list_principals. The player’s identifier must appear on the left of the group, with the same value as in the IDs tab.
  2. Run test_ace for the group and the command. If it prints = false, the group has no allow entry for it, or a deny matched. Add add_ace group.admin command allow, or an entry for that one command.
  3. Turn on se_debug and have the player retry. DENY-ALWAYS points to a deny line.

“Access denied for command resmon” in the F8 console

This one comes from the game client, not from your server’s ACL. The docs say developer commands need the client to run in developer mode, “or they’ll show an error like Access denied for command resmon”. Enable developer mode for your platform as shown in the table above.

add_ace prints “Access type needs to be ‘allow’ or ‘deny’.”

The third argument is something other than allow or deny. add_ace and remove_ace compare it with those two lower-case words exactly, so check the spelling and the case.

“Changing ones own access is not permitted.”

add_ace and remove_ace refuse to edit a principal that is running them. A resource cannot add ACEs to its own resource. principal, and a player cannot change their own identifier’s ACEs. Put the line in server.cfg or run it from the server console.

A resource gets “Access denied for command add_principal”

The resource calls ExecuteCommand without permission for that command. Add add_ace resource.<resource name> command.add_principal allow, plus a line for each other command it runs, as in the ESX block above.

Permissions are gone after a restart

They were added in the console or by a script, and the ACL is not saved anywhere. Put the lines in server.cfg, or in a file it loads with exec.

identifier.steam admins lost access

A principal only matches a player who has that identifier. Since November 4, 2026 the steam: identifier depends on the player linking Steam to their Cfx account. Add the docs’ example line set sv_enforceSteamAuth true to server.cfg, which needs server version 38004 or later, or move the principals to another identifier type.

A deny line does not block a player

The deny sits on one of the player’s principals, and another one still passes. Add the deny to every principal that reaches the allow, for example each identifier the player has in the group, or deny it on the group itself. An object allowed for builtin.everyone cannot be taken from one player by a deny on their identifier, because their other principals still pass.

Admin in txAdmin, but not in the game

txAdmin has a separate permission system. The docs say its permissions are saved in txData/admins.json and edited on the Admin Manager page, and the txAdmin in-game menu is open to admins registered there. Group membership in the ACL comes from add_principal lines, and the deployer writes those once, for the account that runs the deployment. For an admin added to txAdmin later, add their identifier to group.admin yourself. Panel sign-in problems are covered in the txAdmin login guide.

Next Steps

Browse FiveCrate assets

Original FiveM assets made in-house, with free updates and a multi-server license.

Browse assets →

Official documentation and repository references