01
Where to type commands, and who is allowed
The same command is not written the same way everywhere:
- The server console: the FXServer terminal, the txAdmin live console or your host's console. Commands are typed without a slash (
ensure chat) and it has every right.
- The in-game chat: commands start with
/ (/tx, /car adder). The player needs the permission.
- The F8 console in game: the same commands as the chat, without the slash.
In game, rights go through the Cfx.re permission system, the ACEs. add_ace grants a right to a group, add_principal puts a player (or a group) inside another group. The sample server.cfg in the official documentation contains these three lines:
add_ace group.admin command allow
add_ace group.admin command.quit deny
add_principal identifier.fivem:1 group.admin
The first allows every command to the group.admin group, the second takes quit (stopping the server) away from it, and the third adds a player to the group. Replace 1 with the player's Cfx.re account ID; you can also use another of their identifiers, such as identifier.license: or identifier.discord:. To remove them:
remove_principal identifier.fivem:1 group.admin
remove_ace group.admin command allow
test_ace identifier.fivem:1 command
test_ace tells you whether an identifier has a right or not. A line typed in the console only lasts until the next restart: to keep it, write it in server.cfg (see the FiveM server.cfg explained).
02
FXServer console commands
These commands are documented by Cfx.re and work on any FiveM server, with or without a framework.
Resources.
refresh
ensure nom_ressource
restart nom_ressource
stop nom_ressource
start nom_ressource
refresh rescans the resources folder: run it after adding a resource, otherwise the server does not know it exists;
ensure restarts a running resource, or starts it if it was stopped. It is the command to use after a change;
restart restarts a running resource, stop stops it, start starts a stopped one. All three also accept a category name in square brackets, such as [cars].
Restarting a standalone script live is usually fine. For the framework core (es_extended, qb-core) or oxmysql, which every other resource depends on, restart the whole server instead. How to add a script is covered in installing a FiveM script.
Players.
status
clientkick 12 Merci de relire le règlement
say Redémarrage dans dix minutes
status lists connected players with their identifier, session number (the server ID), name, address and ping;
clientkick kicks the player with the given server ID, with a reason;
say sends a chat message to every player, signed "console".
status and clientkick come from the rconlog resource, and say from the chat resource: if the console does not recognise them, the resource is not started (ensure rconlog).
Server.
exec permissions.cfg
quit Maintenance en cours
exec runs the commands in a file, like a piece of server.cfg. quit stops the server and shows the reason to players. When the server runs under txAdmin, prefer its restart and stop buttons, which warn players and keep a record of the action.
03
txAdmin: the in-game menu
txAdmin, shipped with the FiveM server, adds an admin menu inside the game. It opens with:
/tx
/txadmin
/tx 12
With a server ID, /tx 12 opens that player's card directly. A key can also be bound in the game settings, under the FiveM key bindings, to the action (txAdmin) Menu: Open Main Page. If the menu refuses to open after a change of rights, /txAdmin-reauth runs the authentication again.
Only admins declared in the txAdmin admin manager, with a linked Cfx.re or Discord account, can use it. The main page of the menu offers:
- player modes: NoClip (fly through walls), God (invincible) and Super Jump;
- healing (yourself or everyone) and sending an announcement to all players;
- teleporting to the map waypoint or to coordinates;
- spawning and fixing a vehicle;
- resetting an area of the world and showing IDs above players.
A player's card adds: direct message, warning, kick, ban, spectate, freeze, go to them or bring them to you, heal, and a few "troll" actions. Each action depends on a permission granted account by account (players.kick, players.ban, players.teleport, menu.vehicle…): a moderator can warn and kick without being able to spawn a vehicle. Creating accounts is described in the txAdmin guide.
04
txAdmin: sanctions, announcements and restarts
txAdmin sanctions are recorded with their author and reason, and appear in the player's history, on the web panel as well as in the in-game menu.
- Warning: a full-screen message appears for the player, who has to hold the Space key for a few seconds to close it. They cannot claim they did not see it.
- Kick: the player is removed from the server and can come back. The web panel can also kick every player at once, before maintenance for example.
- Ban: the length is chosen in hours, days, weeks or months, as a custom duration, or permanent. A ban is lifted from the player's history.
- Announcement: a message shown to every player, from the in-game menu or the web panel (
announcement permission).
Scheduled restarts. In the txAdmin settings, enter one or more restart times. txAdmin warns players 30, 15, 10, 5, 4, 3, 2 and then 1 minute before, and an admin can skip the next scheduled restart, during an event for example. One or two restarts a day, at quiet hours, are enough for most servers.
The web panel's live console accepts every command from the previous section, with history and search. To filter connections rather than sanction afterwards, see the FiveM server whitelist.
05
ESX and QBCore framework commands
Job, money and vehicle commands do not exist in FiveM itself: they come from the framework. An ESX command does not work on QBCore, and the other way round. These are taken from each framework's official documentation.
ESX (es_extended). The highest group is admin: superadmin is not a valid group. The first admin is set from the server console, without a slash: setgroup 1 admin (1 being the player's server ID).
/setgroup ID groupe, /setjob ID métier grade;
/car modèle, /dv rayon (deletes nearby vehicles), /fix ID;
/giveitem ID objet quantité, /giveaccountmoney ID compte montant, /setaccountmoney ID compte montant, with the money, bank or black_money accounts;
/tpm (to the map waypoint), /goto ID, /bring ID, /noclip, /freeze ID and /unfreeze ID;
/players (ID, name, group and identifier of each player), /coords.
QBCore (qb-core). The ranks are god, admin and mod, handled through ACEs (qbcore.god, qbcore.admin…).
/addpermission ID god and /removepermission ID god: the rank is tied to the player's session and is lost when they reconnect. For a lasting rank, add a line such as add_principal identifier.license:xxxx qbcore.god to server.cfg;
/setjob ID métier grade, /setgang ID gang grade;
/givemoney ID type montant and /setmoney ID type montant, with the cash, bank or crypto types by default;
/car modèle, /dv, /tp ID or /tp x y z, /tpm;
/closeserver motif closes the server to players without permission, /openserver opens it again.
Qbox, derived from QBCore, has its own commands and its own documentation: check each name there before using it. Admin menus added by a resource, such as vMenu, also have their own commands. To choose between frameworks, read ESX, QBCore or Qbox.
06
On a CloudFive server
On our FiveM hosting plans, from €2.50 per month:
- txAdmin is included: the
/tx menu, sanctions and scheduled restarts are available from the first start;
- the console in the manager.cloudfive.fr customer area takes FXServer commands, and files (including
server.cfg) can be edited online or over SFTP;
- ESX, QBCore or Qbox install in one click, with their MariaDB databases;
- backups are available in the customer area: make one before granting rights or changing the framework;
- a shared Patreon key is provided at no extra cost, limited to 48 players; beyond that, you need your own Element Club subscription on the Cfx.re portal.
Servers are in France, on our AS218808 network, with Ryzen 9 9950X, DDR5 and NVMe, and Anti-DDoS Premium included with a FiveM-specific profile. Billing is monthly with no commitment, and support answers in French 7 days a week, through tickets and on Discord. If a command returns an error, the guide FiveM server errors helps you read the console.
07
Frequently asked questions
How do I become an admin on a FiveM server?
Add the lines add_ace group.admin command allow and add_principal followed by your identifier and group.admin to server.cfg, then restart. For the txAdmin menu, you also need an account in the txAdmin admin manager, linked to your Cfx.re or Discord account.
What is the difference between ensure and restart?
restart only restarts a resource that is already running. ensure restarts it if it is running and starts it if it was stopped, which makes it the safest command after a change. After adding a resource, run refresh first.
How do I kick a player from the FiveM console?
Type status to find their server ID, then clientkick followed by that ID and a reason. Both commands come from the rconlog resource, which must be started. With txAdmin, you can also kick from the player's card, and the kick stays in their history.
How do I open the txAdmin menu in game?
Type /tx or /txadmin in the chat, or /tx followed by a server ID to open a player's card. You must be declared in the txAdmin admin manager with a linked Cfx.re or Discord account.
Why does /setjob or /car not work on my server?
These commands are not part of FiveM: they come from the framework, ESX or QBCore, and their syntax differs between the two. Check that the framework is started, that you have the required group or rank, and that you use your framework's syntax.