FiveM Server Commands — Console & txAdmin

  • 8 min read
  • Updated 7 October 2026
  • ESAGAMES Team

FiveM server commands are typed into the FXServer console or txAdmin's live console, and most can also sit in server.cfg so they run at boot. Below: the resource lifecycle, player and server control, the ACE permission lines that decide who is an admin, and the server.cfg settings people get wrong — syntax from the Cfx.re server documentation.

Quick answer

FiveM server commands are typed into the FXServer console or txAdmin's live console, and most can also go in server.cfg to run at boot. The essentials are refresh (find new resources), ensure resource (start or restart one), stop resource, and add_ace / add_principal lines that decide who is an admin.

Where to run them

Run these from the server console (the FXServer window / live console) or through txAdmin's web console. Resource and permission commands can also go in your server.cfg so they run on boot. Day-to-day player moderation (kick/ban/warn with history) is usually done in txAdmin.

Resource commands

CommandWhat it does
ensure <resource>Restart the resource if it was started, or start it if it wasn't — the safest way to (re)load one.
start <resource>Start a stopped resource.
stop <resource>Stop a running resource.
restart <resource>Restart a running resource.
refreshRescan the resources folder and load new or changed resource manifests.
ensure vs start vs refresh

Added a new resource? Run refresh first so the server sees it, then ensure <resource> to load it. ensure is preferred over start because it also restarts a resource that's already running — handy after editing scripts. Framework admin commands (like /car or /setjob) come from ESX/QBCore, not FiveM itself.

Players & server control

CommandWhat it does
statusList players with their primary identifier, server ID, name, endpoint and ping.
clientkick <id> <reason>Kick the player with that server ID (from status).
say <message>Send a chat message as the console.
quit [reason]Shut the server down, optionally telling players why.
exec <file.cfg>Run the commands in a config file (relative to the server data folder).

Making yourself admin: ACE permissions

FXServer decides who may run which commands with ACEs (access control entries) granted to principals — a player identifier or a group. Put the group's permissions and its members in server.cfg:

# everyone in group.admin may run every command
add_ace group.admin command allow
# ...except quit
add_ace group.admin command.quit deny

# put a player into group.admin by their identifier
add_principal identifier.fivem:1 group.admin
CommandWhat it does
add_ace <principal> <object> allow|denyAllow or deny a permission for a player or group.
add_principal <child> <parent>Make a player or group inherit another group's permissions.
remove_ace / remove_principalRemove an entry, with the same arguments.
test_ace <principal> <object>Check whether a principal is allowed or denied something.

Replace identifier.fivem:1 with your own identifier — status shows each connected player's primary identifier. Keep the deny line for command.quit if you don't want every admin able to shut the server down.

txAdmin — player management

txAdmin is the web dashboard bundled with FXServer. It's where you manage players and the server without in-game access:

FeatureWhat it does
Kick / ban / warnFull player moderation with reason and history.
Player historySee a player's past bans, warns and notes.
Live consoleSend any of the console commands above from the browser.
Start / stop / restartControl the server instance or individual resources.
Scheduled restartsAutomate restarts and announcements.

server.cfg essentials

CommandWhat it does
sv_hostname "<name>"The server name shown in the server browser.
sets tags "<tags>"Searchable tags shown in the server list.
sv_maxclients <n>Player slots, 1-2048. 32 or more needs OneSync on or legacy; above 64 needs OneSync on.
set onesync onEnable OneSync (full state awareness), as in the default server.cfg.
sv_licenseKey <key>Your Cfx.re server license key.
load_server_icon icon.pngSet the server icon (a 96x96 PNG).
endpoint_add_tcp "0.0.0.0:30120" / endpoint_add_udpThe address and port the server listens on (TCP and UDP).
rcon_password <password>Enable RCON with this password (FXServer RCON uses UDP); unset means RCON is off.

Setting a server up? See how to set up a FiveM server, add the standard inventory with how to install ox_inventory, and check how much a FiveM server costs.

Frequently asked questions

How do I make myself admin on a FiveM server?

Add an ACE and a principal to server.cfg: add_ace group.admin command allow gives the admin group every command, and add_principal identifier.fivem:<your id> group.admin puts you in it. status shows each player's primary identifier.

How do I restart a resource in FiveM?

Use ensure <resource> — it restarts the resource if it's running, or starts it if it isn't. It's the safest command after editing a script. restart <resource> also works for one that is already running.

What's the difference between ensure, start and refresh in FiveM?

start launches a stopped resource; ensure starts it, or restarts it if already running; refresh rescans the resources folder for new or changed resources. Add a new resource, run refresh, then ensure it.

How do I kick a player from the FiveM console?

Run status to get the player's server ID, then clientkick <id> <reason>. For bans, warnings and player history, use txAdmin, the web dashboard bundled with FXServer.

How many players can a FiveM server have?

sv_maxclients accepts 1-2048. From 32 slots you need OneSync set to on or legacy, and above 64 slots OneSync must be on — the default server.cfg already has set onesync on.

Are /car and /setjob FiveM commands?

No — those come from frameworks like ESX or QBCore, not FiveM itself. FiveM provides the resource, server and permission commands; RP admin commands are added by the framework and scripts you install.

How do I stop a FiveM server properly?

quit shuts the server down, and quit <reason> also tells connected players why. To reload just one script without a restart, use ensure <resource>; for scheduled restarts use txAdmin.

How do I add a new resource to a running FiveM server?

Drop the resource into the resources/ folder, run refresh so the server sees it, then ensure <resource> to start it. Add ensure <resource> to your server.cfg so it also loads on the next boot.

Does FiveM have RCON?

Yes — set rcon_password in server.cfg to enable it; with no password RCON stays disabled. FXServer RCON uses UDP. Most owners send console commands through txAdmin's live console instead.

Go deeper on this

Guides and explainers that pair with this fix — from our guides and blog.

Related articles

Skip the troubleshooting

Managed, protected hosting in Frankfurt — we handle the Linux, the network and the DDoS so you don't have to.