How to Add Admins and Set Permissions on a FiveM Server
Admin access on a FiveM server comes from three separate systems, and mixing them up is the most common reason staff cannot use a command. This guide explains what each one controls so you can set up your team correctly.
1. txAdmin admins
txAdmin is the web panel used to restart, monitor and configure your server. Its admins are managed in txAdmin itself, not in server.cfg. The default txAdmin web port is 40120, so on a hosted server you normally open the link given in your Console tab or panel.
- Open the Admin Manager page in txAdmin.
- Add a new admin and tick only the permissions that person needs.
- Staff log in with their Cfx.re account when you link it.
Give full control only to people you trust, because txAdmin permissions can restart the server and change settings.
2. ACE permissions in server.cfg
ACE permissions control what players can do in-game and with resources. They are written in server.cfg. A common pattern is to put admins in a group and grant that group a command or permission.
- Open server.cfg from the Files tab.
- Add a line such as add_ace group.admin command allow, which allows that group to use all commands.
- Add the player with add_principal identifier.fivem:YOURID group.admin, using that player's own identifier.
- Save the file and restart the server.
Many scripts check ACE permissions, so read the script documentation to see which permission names it expects.
3. Framework groups
ESX and QBCore keep their own staff ranks. In ESX the player group is stored on the player in the database, for example admin or superadmin. In QBCore permissions are normally granted with ACE lines in server.cfg that reference the player identifier and a QBCore permission group. Exact names vary by version, so check the documentation of the version you run.
Tips
- Prefer identifiers such as the license identifier, because names change.
- Keep a small number of full admins and give moderators limited rights.
- Back up server.cfg before editing so you can roll back a typo.
- If a command is still denied, check that the identifier is exactly correct and that you restarted the server after editing.
If you are unsure which system a permission belongs to, ask in our Discord and we can help you find it.