FiveMtxAdminConfiguration5 min read

Initial FiveM server setup

First steps to configure your FiveM server: txAdmin access, server.cfg and basic resources.


Prerequisites

To run a FiveM server you need a Cloud VPS from Baires Host with at least 4 GB RAM, 2 vCPU and 50 GB SSD. FiveM does not use Pterodactyl — it's managed through txAdmin, an integrated web panel.

Step 1: Connect to your VPS and prepare the environment

bash
ssh root@YOUR_PUBLIC_IP
apt update && apt upgrade -y
apt install -y git xz-utils curl wget screen
adduser fivem
usermod -aG sudo fivem
su - fivem

Step 2: Download FiveM server artifacts

Download the latest Linux server artifacts:

bash
mkdir -p ~/fxserver && cd ~/fxserver
wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/LATEST_BUILD_URL -O latest.tar.xz
tar -xvf latest.tar.xz

Step 3: Generate your license key

  1. Go to keymaster.fivem.net and log in with your Cfx.re account
  2. Register a new server with your VPS IP address
  3. Copy the generated license key

Step 4: First start with txAdmin

Start the server so txAdmin can initialize:

bash
cd ~/fxserver
screen -S fivem
./run.sh +set serverProfile default

txAdmin starts on port 40120. Access it from your browser: http://YOUR_IP:40120.

Step 5: Configure txAdmin

  1. Enter the PIN shown in the server console
  2. Choose Deploy a Template or Custom Server Data
  3. Paste your license key when prompted
  4. Set the server data path (e.g., /home/fivem/fxserver/server-data)

Step 6: Edit server.cfg

The server.cfg file is your main configuration. Edit it from txAdmin or via SSH:

bash
# Server name (shown in FiveM server list)
sv_hostname "My RP Server - Baires Host"

# License key
sv_licenseKey "your-key-here"

# Maximum player slots
sv_maxclients 64

# Initial resources
ensure mapmanager
ensure spawnmanager
ensure chat
ensure hardcap

Step 7: Open firewall ports

bash
sudo ufw allow 30120/tcp
sudo ufw allow 30120/udp
sudo ufw allow 40120/tcp
sudo ufw reload

Port 30120 is for player connections and 40120 is for the txAdmin panel.

Verify it works

From the FiveM client, connect directly by IP: connect YOUR_IP:30120.

Tips

  • Use screen or systemd to keep the server running in the background
  • Set up automatic backups of the server-data folder
  • Keep artifacts updated for security patches
  • Check txAdmin logs regularly for resource errors
  • Consider 8 GB RAM or more for servers with 64+ players and many resources

Was this guide helpful?