SleepyCode
Home
AboutBlogSubscriptionDocs
Cart0
SleepyCode
Cart0
  1. Home
  2. /
  3. Guides
6 min read

Guide Β· October 19, 2026

How to Give Yourself Admin on a FiveM Server (txAdmin, ESX, QBCore, QBox)

Admin on FiveM lives in three places: txAdmin, ace permissions and your framework's group. Set up all three for ESX, QBCore and QBox, with copy-paste server.cfg lines.

"Admin" on a FiveM server is not one switch. There are three separate layers, and most "I am admin but the command does not work" problems happen because only one of them is set.

LayerControlsWhere you set it
txAdminWeb panel and the in-game txAdmin menu (F1 or /tx)txAdmin β†’ Admin Manager
Ace permissionsBuilt-in commands and scripts that call IsPlayerAceAllowedserver.cfg
Framework groupESX /car, /setjob, QBCore /admin and most job/admin scriptsDatabase or a framework command

Step 1: find your identifier

You need one of your identifiers, ideally your license or fivem ID.

  • In txAdmin open Players, click your name and look at the IDs tab.
  • Or connect to the server and check the server console: txAdmin prints identifiers on join.

They look like license:1a2b3c... and fivem:123456. In server.cfg they are written with the identifier. prefix.

Step 2: txAdmin admin

Open txAdmin β†’ Admin Manager β†’ Add Admin, enter your Cfx.re username and/or Discord ID and tick the permissions. The master account (the one that set up txAdmin) already has everything.

Step 3: ace permissions in server.cfg

Add these lines near the bottom of server.cfg, replacing the identifier with yours:

cfg
add_ace group.admin command allow
add_ace group.admin command.quit deny

add_principal identifier.fivem:123456 group.admin
add_principal identifier.license:1a2b3c4d5e6f group.admin

Restart the server after changing server.cfg. You can test it from the server console with:

test_ace identifier.fivem:123456 command

Step 4: framework group

ESX Legacy

From the server console (not in-game, until you are already an admin):

setgroup 1 admin

where 1 is your server ID (shown in txAdmin's player list). The groups ESX knows are set in es_extended/config.lua under Config.AdminGroups.

You can also set it in the database: in the users table, find your row and change the group column to admin. Do it while you are offline, otherwise the server overwrites it when you leave.

QBCore

Add the QBCore principal in server.cfg:

cfg
add_principal identifier.license:1a2b3c4d5e6f qbcore.god

Or, from the server console while you are online:

addpermission 1 god

QBCore's levels are god, admin and mod.

QBox

QBox reads permissions straight from ace, so the group.admin principal from Step 3 is enough. If your scripts check for group.god, add a second line for it the same way.

Common problems

"You do not have permission" in-game - one of the three layers is missing. Run test_ace for ace, and check the framework group.

Admin disappears after restart - you set it in the database while online, or used a temporary command. Put it in server.cfg instead.

Works on one PC, not another - you used an identifier that changes, like an IP or Discord ID without Discord running. Use license or fivem.

Next steps

With admin sorted you can test scripts properly. Our developer tool gives admins a world editor, prop placer, ped spawner and interior debugger in one menu, and the installation guide for FiveM scripts covers adding more resources.

The catalogue

Every script for ESX and QBCore, in one place.

Browse scripts

On this page

  1. 01Step 1: find your identifier
  2. 02Step 2: txAdmin admin
  3. 03Step 3: ace permissions in server.cfg
  4. 04Step 4: framework group
  5. 05Common problems
  6. 06Next steps
Next

More guides

  • FiveM Resmon Explained: How to Find and Fix High-ms ScriptsRead FiveM's resource monitor, know what a good ms value is, and fix the code patterns that make scripts heavy - with Lua examples you can copy.Read β†’
  • How to Add Items to ox_inventory (with Images and Usable Items)Add new items to ox_inventory on ESX, QBCore or QBox: the items.lua entry, item images, giving the item in-game and making it usable with an export.Read β†’
Ready when you are

Put your server on something that holds up

150+ servers run our resources - ESX, QBCore and standalone. Once the payment clears, the package is waiting in Keymaster.

Browse the catalogueAsk on Discord β†—
  • Delivered instantly
  • Support with no expiry
  • 100+ reviews
  • Payment via Tebex

SleepyCode

FiveM Scripts

Checkout is run by Tebex Limited - they handle payment, invoicing and refunds. Β© 2026

Community

  • Discord
  • YouTube
  • X (Twitter)

Navigation

  • Home
  • All Scripts
  • ESX Scripts
  • QBCore Scripts
  • Free Scripts
  • About
  • Blog
  • Documentation
  • Support

Legal

  • Privacy Policy
  • Tebex Privacy Policy
  • Terms of Service
  • Impressum

Β© 2026 SleepyCode. Not affiliated with Rockstar Games or Take-Two Interactive.

Powered byTebex