Find us on social media
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 - fivemStep 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.xzStep 3: Generate your license key
- Go to keymaster.fivem.net and log in with your Cfx.re account
- Register a new server with your VPS IP address
- 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 defaulttxAdmin starts on port 40120. Access it from your browser: http://YOUR_IP:40120.
Step 5: Configure txAdmin
- Enter the PIN shown in the server console
- Choose Deploy a Template or Custom Server Data
- Paste your license key when prompted
- 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 hardcapStep 7: Open firewall ports
bash
sudo ufw allow 30120/tcp
sudo ufw allow 30120/udp
sudo ufw allow 40120/tcp
sudo ufw reloadPort 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
screenorsystemdto keep the server running in the background - Set up automatic backups of the
server-datafolder - 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?