VGKAMI
Advertise Get listed

Game Guides

FiveM Server Admin Commands and How to Use Them

October 26, 2026 11 min read

FiveM server commands let you control resources, inspect players, send server messages, load command files, and manage permissions. You can enter them in the FXServer console, through RCon, from a configuration file or server command line, or through an ACL-authorized resource call. For routine administration, use ensure for resources, status to inspect connected players, clientkick for an immediate kick, ACE commands for access control, and txAdmin for an authenticated web or in-game administration workflow. The sections below show the exact syntax, where each command belongs, and how to avoid confusing temporary server IDs with persistent player identifiers.

What are FiveM admin commands, and where can I run them?

FiveM server commands are server-side instructions interpreted by FXServer. Cfx.re documents five command surfaces: the server console interface, an RCon tool, a server configuration file, the server command line, and an EXECUTE_COMMAND call from a resource that has been allowed by the server ACL.

The same command can behave differently depending on where you run it. A command typed into the console is normally a one-off action; a line in server.cfg is replayed when the server starts; and a command run through txAdmin is associated with the staff account and panel workflow. Do not paste server commands into the normal player chat unless a resource specifically exposes that chat command.

Surface Best use Persistence Permission and audit considerations Restart needed?
FXServer console Live resource control, status checks, maintenance messages and shutdowns One-off unless written into a configuration file Anyone with console access can issue powerful commands; console output is the main record Usually no
RCon Remote operation when you cannot use the host terminal One-off unless the command changes saved configuration Protect RCon credentials and network exposure; record who issued each action Usually no
Configuration file Startup permissions, resource load order and repeatable settings Persistent across restarts File access is equivalent to high server authority; review changes before restarting Changes normally take effect on the next relevant load or restart
Server command line Launch-time options and scripted startup commands Persistent in the launch script or service definition Protect the host account and command-line files Often yes, because launch arguments are read at startup
ACL-permitted EXECUTE_COMMAND Automation inside a trusted resource Depends on the resource code The resource must be explicitly allowed by ACL; broad permission can turn a bug into full server control Depends on the command
txAdmin Staff operations, moderation, monitoring and scheduled control Panel settings and moderation records are saved by txAdmin Granular staff permissions and account authentication provide an auditable workflow Only for actions that change server state or require a restart

Use the least powerful surface that completes the task. For example, use txAdmin’s resource controls instead of giving a moderator unrestricted console writing, and use a narrowly scoped ACE rule instead of granting every command.

How do I start, stop, refresh, or restart a resource?

Run these commands in the FXServer console, through RCon, from an authorized configuration or command-line context, or through another server-command surface permitted by ACL. Replace resourceName with the folder/resource name.

Command What it does Example
start resourceName Starts a resource that is stopped. A category can also be supplied. start my_resource or start [cars]
stop resourceName Stops a running resource. stop my_resource
ensure resourceName Starts a stopped resource and restarts it if it is already running. ensure my_resource
restart resourceName Stops and starts the named resource. restart my_resource
refresh Rescans the resources folder so newly discovered manifests become available. refresh

What is the safest workflow after adding or editing a resource?

  1. Place the resource in the server’s resources directory and verify that its manifest is present.
  2. Run refresh so FXServer rescans the folder and discovers the resource.
  3. Run ensure resourceName. This starts it if stopped and brings an already running copy back up after an edit.
  4. Read the console output for dependency, manifest, or runtime errors before asking players to test it.

If you only want to load a resource that is not running, start is more explicit. If you need the desired end state to be “running” regardless of its current state, use ensure.

Which daily management commands should every administrator know?

How do I run a command file?

exec filename runs commands from a file relative to the server data directory. To address a file inside a resource, use the resource form:

exec maintenance.cfg
exec @my_resource/commands.cfg

Keep command files short, reviewable and access-controlled. An exec file can contain any command the executing account is allowed to run, so treat it like executable configuration rather than harmless text.

How do I shut down or announce a restart?

quit exits the server and sends the default player message. Supply a quoted reason when players need context:

quit "Restarting - will be back soon!"

Send a warning first with say, then quit when the maintenance window begins:

say Server restart in five minutes.
quit "Scheduled maintenance"

say message sends a chat message as the console through the chat resource. If chat is disabled or replaced, the message may not appear; confirm that the active chat resource supports console messages.

How do I see who is connected?

Run status. It lists each connected player with a primary identifier, server ID, name, endpoint and ping. Use the displayed server ID only for an immediate session action; it is not a permanent identity.

How do I kick a player from a FiveM server?

Use clientkick id reason, replacing id with the player’s current server ID and adding a reason:

clientkick 42 "Please reconnect after resolving the connection issue"

This is a kick, not a ban. The player can reconnect unless another system prevents it. Run status immediately before the action when possible, because server IDs are temporary and can change after reconnects.

How do I ban a player?

Use txAdmin’s player browser and moderation controls for bans. First confirm the correct player record, then select the ban action, choose the appropriate duration if offered by your policy, and record a clear reason. A server ID identifies the current connection; a license, Discord or other persistent identifier is the identity you need to evaluate for a ban. Do not ban solely from a copied name when multiple players may use similar names.

txAdmin also supports warnings, allowlisting and player logs. Give staff only the moderation permissions they need, and make your server’s evidence and appeal policy clear before issuing long or permanent bans.

How do ACE permissions work, and how do I give myself admin access?

ACE is FiveM’s low-level access-control layer. It evaluates principals (such as identifiers or groups) against objects (such as command names), with allow or deny rules and inheritance. Granting an account a group does not automatically make every command safe; the group’s ACE entries determine what it can do.

Basic ACE commands

add_ace group.admin command.restart allow
add_principal identifier.license:YOUR_IDENTIFIER group.admin
test_ace identifier.license:YOUR_IDENTIFIER command.restart
remove_ace group.admin command.restart allow
remove_principal identifier.license:YOUR_IDENTIFIER group.admin
  • add_ace principal object allow|deny adds an allow or deny rule. In the example, members of group.admin may use the restart command.
  • add_principal child parent makes one principal inherit from another. The license identifier inherits the permissions assigned to group.admin.
  • test_ace principal object checks the resulting access decision and is the fastest way to verify that a rule is actually effective.
  • remove_ace principal object allow|deny removes the matching rule.
  • remove_principal child parent removes the inheritance relationship.

How should I add my identifier safely?

  1. Identify the exact identifier you intend to use, such as your license identifier, and copy it without extra spaces.
  2. Add a narrowly scoped group or command rule in the server’s persistent configuration rather than relying on a forgotten console command.
  3. Add your identifier as a principal of that group.
  4. Reload or restart according to your configuration process, then run test_ace for each sensitive command you expect to use.
  5. Remove temporary testing rules and keep a dated record of who received access and why.

Avoid broad grants when a narrow rule is enough. Console writing, configuration editing, resource control and staff administration can affect the entire server. If a moderator only needs to warn and kick players, do not give that role unrestricted command access.

What is txAdmin, and how is it different from raw console commands?

txAdmin is the web and in-game administration panel included with FXServer builds 2524 and newer, according to Cfx.re. It provides server start, stop and restart controls; resource management; player search; warnings and bans; allowlisting; logs; monitoring; scheduled restarts; and staff permissions.

The panel is useful when several staff members need controlled access. Instead of sharing an RCon password or host terminal, create authenticated staff accounts and assign only the actions required for each role.

Which txAdmin permissions matter most?

Permission Capability Typical assignment
console.view Read the live server console Support staff who need diagnostics but should not execute commands
console.write Execute console commands Trusted senior administrators only
control.server Start, stop and restart the server Operations or owner role
commands.resources Start and stop resources Developers or technical moderators
players.warn Warn players Moderators
players.kick Kick players Moderators
players.ban Ban players Senior moderators with a documented policy
players.freeze Freeze a player Moderators handling investigations
players.teleport Teleport a player Staff roles that need in-game intervention
players.whitelist Manage allowlisting Operations staff
all_permissions Grants every txAdmin action Use only for the owner or a tightly trusted administrator

Separate viewing from writing wherever possible. A staff member who can read the console but cannot use console.write can investigate errors without gaining a direct command-execution path.

How do I use the txAdmin menu in game?

Type /tx or /txadmin in game. The menu opens only for an authenticated txAdmin staff account with the required identity link and permissions. You can optionally append a player ID to open that player’s information view.

/tx
/txadmin
/tx 42

What must be configured before the menu works?

  1. Create the staff account in txAdmin.
  2. Link a Discord or Cfx.re identifier to that account.
  3. Assign the permissions needed for the staff role.
  4. Join the server using the linked identity and run /tx or /txadmin.
  5. If authentication must be triggered again, run /txAdmin-reauth and complete the sign-in flow.

A key binding is also available in FiveM’s game settings. If the command does nothing, first check that you are signed in with the linked identity and that your account has a permission beyond merely existing in the panel.

How should I moderate from the in-game panel?

  1. Open the player browser and select the target rather than relying on a name typed in chat.
  2. Check the player’s current server ID and persistent identifiers.
  3. Choose the least severe action that matches your rules: warning, kick, freeze, teleport or ban.
  4. Enter a concise reason that another staff member can understand later.
  5. Review the resulting log entry and record any evidence required by your appeal process.

How do I set up txAdmin on a new server?

Cfx.re’s setup guidance covers Windows, Linux, txAdmin and game-server hosting providers. You need a free Cfx Portal license key before completing the server setup.

  1. Install or download an FXServer build for your operating system or hosting environment.
  2. Obtain the required Cfx Portal license key.
  3. For the first txAdmin run, launch FXServer without +exec arguments so the panel can complete its initial configuration.
  4. Open the setup page shown by txAdmin, create the administrator account and link the identity you will use in game.
  5. After setup, configure the server data directory, resources, permissions and startup process.
  6. Only then add your normal +exec startup argument or service definition and test a restart.

Keep the license key, panel credentials and host access private. A successful first launch does not mean every staff member should receive console-writing rights.

Why does a FiveM admin command fail, and how can I fix it?

The command says access denied

  • Run test_ace for the exact principal and object, including punctuation and identifier type.
  • Check that the add_principal line points to the group you intended and that the group has the required add_ace rule.
  • Confirm the configuration file containing the rule was actually executed and that you are using the same identifier attached to your account.
  • For txAdmin, verify the specific permission instead of assuming a broad staff label includes it.

The resource cannot be found after I added it

  • Check the folder name and manifest location.
  • Run refresh to rescan the resources directory.
  • Use the exact resource name with start or ensure.
  • Read the console for missing dependencies or manifest errors.

The kick affected the wrong player

Run status again and match the server ID, name, endpoint and primary identifier. A server ID is temporary, so never treat it as proof of a persistent identity.

The txAdmin menu will not open

  • Confirm that txAdmin is available in your FXServer build and that the panel has completed first-run setup.
  • Check that your Discord or Cfx.re identity is linked to the txAdmin account.
  • Verify that the account has an in-game permission and that you joined with the linked identity.
  • Try /txAdmin-reauth, then retry /tx or /txadmin.
  • Use the configured key binding from FiveM’s game settings if chat commands are being intercepted.

Windows reports a generic access problem

Check ACE rules, file paths, resource manifests and server logs before installing a system-repair utility. A third-party repair workflow may scan Windows abnormalities, but it cannot replace correcting an incorrect principal, an unreadable configuration file or a resource error in the FXServer log.

What is a sensible command and permission policy for a staff team?

  • Keep owner-level console access separate from routine moderation.
  • Give diagnostic staff console.view without console.write unless command execution is part of their job.
  • Give developers resource permissions instead of full server-control permissions when possible.
  • Require a reason for warnings, kicks and bans, and review the corresponding txAdmin log.
  • Use persistent identifiers for bans and allowlisting; use server IDs only for the current connection.
  • Store ACE rules in a reviewed configuration file and remove former staff promptly.
  • Test every new rule with test_ace before announcing that a role is ready.
  • Use say before planned restarts and provide a reason with quit.
  • Prefer ensure after a resource edit when the desired state is definitely running.
  • Protect RCon, txAdmin credentials, license keys and server files as production secrets.

Frequently Asked Questions

Can I run FiveM server commands from the in-game chat?

Only if a resource has deliberately exposed a chat command for that action. The documented server-command surfaces are the FXServer console, RCon, configuration or command-line context, ACL-authorized resource execution and txAdmin; ordinary chat is not a general substitute for them.

What is the difference between a FiveM server ID and a license identifier?

A server ID belongs to the current connection and can change when a player reconnects. A license, Discord or other persistent identifier is tied to the player’s account identity and is the appropriate basis for ACE assignments, bans and allowlisting.

Does restarting a resource restart the whole FiveM server?

No. restart resourceName restarts only the named resource. A server-wide restart requires txAdmin’s server control or a shutdown and relaunch through the host’s normal process.

Why can a moderator see txAdmin but not kick anyone?

txAdmin permissions are separate capabilities. The account may have viewing access without players.kick, or it may be linked to a different identity than the one used to join the server; check the assigned permission and linked identifier.