To add admin FiveM server permissions, give a group rights with add_ace and put the player in that group with add_principal in server.cfg, for example add_principal identifier.fivem:1234567 group.admin, then restart. FiveM calls this system ACE (access control entries). If you use txAdmin, its web panel keeps a separate admin list, so many servers set up both.
The default server.cfg from Cfx.re already has the lines, with a placeholder ID. Most people only need to swap in their own identifier. If you are still building the server, start with how to make a FiveM server.
How ACE permissions work
- Principal: who gets the permission. A group such as
group.admin, or a player written asidentifier.<type>:<value>. - Object: what is allowed.
commandmeans every command;command.quitmeans onlyquit. add_acegives an object to a principal (allowordeny).add_principalmakes a child principal inherit from a parent, which is how a player joins a group.
The exact syntax of each command is in the FiveM server commands reference.
Find the player's identifier
A player connects with several identifiers. These are the types listed in the Cfx.re documentation:
| Type | What it is | Format |
|---|---|---|
fivem: | Cfx.re account user ID | Number |
license: | Rockstar license (Rockstar Online Services) | Hex hash |
discord: | Discord user ID | Number |
steam: | Steam ID, only if the account is linked | Hex |
The quickest way to see one: have the player join and run status in the server console, which lists each player with their primary identifier. In txAdmin, the player window also shows their identifiers. Prefer fivem: or license:; they do not depend on a linked Steam or Discord account, so they are there for every player.
Heads-up: if you use identifier.steam: in your ACE lines, Cfx.re asks you to set set sv_enforceSteamAuth true. Since November 4, 2026, the old steam_webApiKey no longer works.
How to add admin FiveM server rights in server.cfg
- Back up first. On TheGameHosting: Backups → Create backup.
- Open
server.cfgin Files (or over sFTP). - Check the admin group lines and add one
add_principalper admin:Keep the identifier exactly as shown by# Admin group: every command except quit add_ace group.admin command allow add_ace group.admin command.quit deny # Admins (one line per person) add_principal identifier.fivem:1234567 group.admin add_principal identifier.license:abc123def456 group.adminstatus, including the type before the colon. - Save and restart the server from the panel. To apply it without a restart, you can also type the same
add_principalline in the Console; it is lost at the next restart unless it is inserver.cfg. - Test it from the console:
It tells you whether that principal is allowed or denied. Then join and try an admin command in game.
test_ace identifier.fivem:1234567 command.quit
A moderator group with fewer commands
You can build more groups the same way. A moderator group that can only use the commands you name:
add_ace group.mod command.say allow
add_ace group.mod command.clientkick allow
add_principal identifier.discord:123456789012345678 group.mod
say and clientkick come with the stock chat and rconlog resources. To remove someone, delete their line, or use remove_principal identifier.fivem:1234567 group.admin. Admin menus and frameworks often check ACE too, with their own group or permission names; read the docs of the resource you use. Our QBCore vs ESX comparison covers the frameworks themselves.
txAdmin admins are a separate list
txAdmin, the web panel built into FXServer, has its own admins with their own permissions, stored in txData/admins.json and managed from its admin manager page by the master account or by admins allowed to manage admins. Being a txAdmin admin lets someone use txAdmin (restart, kick, ban, the in-game menu); being in group.admin lets them run server commands. Give your staff both when they need both. A common setup: the owner and head admins in both lists, and moderators only in txAdmin with limited permissions, so they can handle players without touching the server configuration.
FiveM admin on TheGameHosting
On FiveM server hosting from TheGameHosting you edit server.cfg in Files or over sFTP, read identifiers and run test_ace in the panel Console, and give your co-admin access to the panel with Users, without sharing your account. Two MySQL databases are included for ESX, QBCore or Qbox, and you can set things up with txAdmin recipes. Running other servers too? Our guide to adding an admin on a CS2 server works the same way.
FiveM needs 8 GB of RAM on our plans, from $6.96 USD a month, on AMD 9950X/7950X3D CPUs with DDoS protection in Dallas or Amsterdam. See the game server plans and use code FULL2026 for 15% off for life.
FAQ
How do I make myself admin on my FiveM server?
Find your identifier with status in the server console, add add_principal identifier.fivem:YOURID group.admin to server.cfg (with add_ace group.admin command allow above it) and restart.
How do I make someone else admin on FiveM?
Add one add_principal line with their identifier and group.admin, or a smaller group such as group.mod with only the commands you allow.
Which identifier should I use for FiveM admin?
fivem: (Cfx.re account) or license: (Rockstar license) are the usual choices. steam: works only for linked accounts and needs sv_enforceSteamAuth true.
Is txAdmin admin the same as ACE admin?
No. txAdmin keeps its own admin list in txData/admins.json. ACE in server.cfg controls server commands. Staff often need both.
Hosting for these games
Written by TheGameHosting Team, the people who run our servers in Dallas and Amsterdam and answer your tickets.
All posts
TheGameHosting Team
