Docs / Training: FiveM server (GTA V)
Install a FiveM server
From nothing to a running server, on Windows or Linux, with txAdmin.
Training on GTA V: this page covers FiveM, the GTA V roleplay platform. No tool to create a GTA 6 server has been announced: what you learn here is the best preparation.
This page installs a FiveM (GTA V) server managed with txAdmin, the admin panel shipped with the server.
What you need
- A Cfx.re account (the same as on the FiveM forum).
- A server license key, created for free on portal.cfx.re.
- A Windows or Linux machine with ports 30120 (TCP and UDP) open for players.
1. Download the server (the "artifacts")
The server is downloaded from the Cfx.re builds site:
- Windows:
https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/ - Linux:
https://runtime.fivem.net/artifacts/fivem/build_proxy_v2_linux/master/
Take the recommended version shown at the top of the page.
2. Install on Windows
- Create a folder, for example
C:\FXServer\server, and extract the archive into it. - Create a second folder for your data, for example
C:\FXServer\data. - Run
FXServer.exe: txAdmin opens in your browser (port 40120) with a PIN code shown in the console.
3. Install on Linux
mkdir -p ~/fxserver/server && cd ~/fxserver/server
wget <recommended version link>/fx.tar.xz
tar xf fx.tar.xz
./run.sh
txAdmin then listens on http://your-machine-ip:40120. To keep it running, start it in a systemd service or a screen session.
4. Set up with txAdmin
- Enter the PIN code and link your Cfx.re account.
- Choose "Popular Recipes" then a template: CFX Default (empty), ESX Legacy or QBCore for example. See Choose an RP framework.
- Paste your license key.
- Let txAdmin install the files and the database if the template needs one.
- Start the server from txAdmin.
5. Connect
In FiveM, press F8 and type:
connect localhost:30120
From another computer, replace localhost with the server's public IP address.
Tip: if nobody can connect from outside, check the machine's firewall and the forwarding of port 30120 TCP and UDP on your router or at your host.
Next
Now open the server.cfg file: Configure server.cfg.
What about GTA 6?
To be confirmed: we don't know yet how a GTA 6 server will be installed (software, license, ports). Cfx.re, the maker of FiveM, has belonged to Rockstar since 2023, but nothing has been announced. This page will be updated as soon as there is something concrete.
