How to Kick and Ban Players on Your FiveM Server ​
You have two ways to moderate your FiveM server: the txAdmin web interface and the server console. In txAdmin you can kick, warn and ban players with a few clicks and revoke bans later on. Via the console you can only kick players — FXServer does not ship with a built-in ban command.
Note
Whether txAdmin runs is controlled by the txAdmin field in your dashboard (1 = enabled, 0 = disabled). On server start, txAdmin prints the address of its web interface to the console. How to set up txAdmin is explained under Enable txAdmin.
Find a player in txAdmin ​
Open txAdmin
Open the txAdmin web interface of your server and log in with your admin account.Open the playerlist
All connected players are listed in the playerlist on the right-hand side. Use the Filter by Name or ID field to narrow down the list.Open the player window
Click the name of the player. A window opens with the tabs Info, History, IDs and Ban as well as the buttons DM, Kick and Warn.
Note
Players who are currently offline can be found under Players in the top menu. There you can search by Name, Notes or Player IDs. Banning and warning also works for offline players, while kicking only works for players who are currently connected.
Kick a player ​
Open the player window
Open the window of the player as described above.Select Kick
Click Kick at the bottom of the window.Enter a reason
Type a reason or leave the field blank, then confirm with Send.
Note
A kick only removes the player from the current session. They can reconnect immediately afterwards. If someone should stay out for good, use a ban instead.
Tip
To remove everyone at once, click Kick All Players in the server controls in the left sidebar.
Ban a player ​
Open the player window
Open the window of the player and switch to the Ban tab.Enter a reason
Type the reason for the ban into the Reason field. The reason has to be at least three characters long.Choose a duration
Pick one of the presets under Duration:Option Meaning Custom (set below)your own duration 2 HOURS/8 HOURS2 or 8 hours 1 DAY/2 DAYS1 or 2 days 1 WEEK/2 WEEKS1 or 2 weeks Permanentpermanent With Custom (set below) you enter a number underneath and choose HOURS, DAYS, WEEKS or MONTHS as the unit.
Apply the ban
Click Apply Ban. If the player is currently connected, they are dropped from the server right away.
Note
The ban applies to every identifier txAdmin has stored for that player — not just to their name. On the next connection attempt the player sees a message containing Ban Reason, Ban Date, Banned by and the Ban ID.
Tip
Save recurring reasons as a template: Settings → Bans → Edit Ban Templates. The same page holds the Ban Rejection Message — an optional text that is shown to banned players in addition. If you have a ban appeal process, you can use it to point players to it.
Revoke a ban ​
Open History
Click History in the top menu. All warnings and bans are listed there.Find the entry
Search for the ban by its Action ID (formatXXXX-XXXX), by Reason or by Player IDs. You can additionally filter by type and by the admin who issued it.Tip
The Action ID is exactly the Ban ID shown to the banned player on their connection attempt. Ask the player for it and you will find the entry instantly.
Open the entry
Click the entry. A window opens with the tabs Info, IDs and Revoke.Revoke the ban
Switch to the Revoke tab and click Revoke Ban.
Note
You can reach the same dialog straight from the player window: in its History tab, simply click the entry in question.
Kick a player via the server console ​
Note
Which console you need depends on the txAdmin field: if it is set to 1, txAdmin controls the actual server process — enter your commands in the Live Console, which you find in the left sidebar of txAdmin. If it is set to 0, your server starts directly with +exec server.cfg and you use the console in your dashboard.
Warning
Commands have to be entered in the console without a leading slash.
Open the console
Open the Live Console in txAdmin or — with txAdmin disabled — the console in your dashboard.Look up the player ID
List all connected players:statusThe output shows the server ID, the name, the primary identifier and the ping for every player.
Kick the player
Kick the player by their server ID and add a reason:clientkick 12 Breaking the rules
Note
status and clientkick are provided by the default resource rconlog. It has to be running for the commands to be available — in the default server.cfg this is handled by the line ensure rconlog.
Warning
FXServer has no built-in ban command. Bans are issued either through txAdmin or through the ban system of your framework or script.
Permissions for your team ​
Which admin is allowed to kick or ban is defined under Admins in txAdmin. The relevant permissions are:
players.kick— kick a playerplayers.warn— warn a playerplayers.ban— ban and unban a playerconsole.write— run commands in the Live Console
Tip
Only grant the permissions that are actually needed. A moderator usually gets by with players.kick, players.warn and players.ban — permissions such as control.server or settings.write are not required for that.