How to Set Up a FiveM Server on a VDS: Step by Step

How to Set Up a FiveM Server on a VDS: Step by Step

A complete FiveM server setup guide: txAdmin installation, server.cfg configuration, framework choice, database setup and performance tips on a VDS.

White Bilişim

How to Set Up a FiveM Server on a VDS

FiveM is the platform behind most custom multiplayer experiences built on GTA V. Running your own FiveM server starts with reliable game server infrastructure. This guide covers the entire process, from an empty VDS to a running roleplay server.

System Requirements for a FiveM Server

Hardware choice decides whether your FiveM server runs cleanly. Here are the minimum and recommended specs:

ComponentMinimumRecommended
Processor2 cores4+ cores (high frequency)
RAM4 GB8-16 GB
Storage30 GB SSD60+ GB SSD
Network100 Mbps1 Gbps+
Operating systemWindows Server / LinuxWindows Server 2019+

💡 White Bilişim’s Xeon Enterprise VDS packages pair Intel Xeon Gold 6230R processors with a 10 Gbps network and make an ideal starting point for FiveM. The ENT-3 package (4 cores, 6 GB RAM, 60 GB SSD) comfortably runs a mid sized FiveM server.

Step 1: Ordering the VDS

The first step is buying a VDS (Virtual Dedicated Server) to host the FiveM server. What to check before you order:

  • Istanbul location: low ping for your players in Turkey
  • DDoS protection: FiveM servers get attacked often
  • High bandwidth: a 10 Gbps or better uplink
  • SSD storage: fast file read and write performance

White Bilişim covers all of this from the Istanbul/Datacasa location, with a 10 Gbps network and free daily backups.

Step 2: Connecting to the Server

RDP on Windows Server

If you went with Windows Server, connect over Remote Desktop:

  1. Type “Remote Desktop Connection” in the Start menu
  2. Enter your server IP address
  3. Sign in with your username and password

SSH on Linux

If you chose Linux, connect over SSH with PuTTY or a terminal:

ssh root@YOUR_SERVER_IP

Step 3: Downloading the FiveM Server Artifact

Grab the latest FiveM server artifacts from the official Cfx.re site:

# Create the directory
mkdir /home/fivem-server
cd /home/fivem-server
 
# Download the artifact (Linux)
wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/LATEST_BUILD_URL
 
# Extract the archive
tar -xvf fx.tar.xz

On Windows Server you can download the artifact in a browser and extract it into a folder.

Step 4: Installing and Configuring txAdmin

txAdmin is the web interface most FiveM owners use to manage their server:

  1. Run FXServer.exe (Windows) or ./run.sh (Linux)
  2. Open http://YOUR_SERVER_IP:40120 in your browser
  3. Copy the txAdmin PIN from the console output
  4. Sign in with your Cfx.re account
  5. Set the server name and path

Choosing a Deployment Recipe

txAdmin can install popular frameworks for you:

  • QBCore: the most popular and most complete RP framework
  • ESX (es_extended): the classic, dependable option
  • Custom: build your own setup

Step 5: Getting a Keymaster License Key

Create your server license key in the FiveM Keymaster portal:

  1. Sign in with your Cfx.re account
  2. Click “Register a new server”
  3. Fill in your server details
  4. Add the generated key to your server.cfg
sv_licenseKey "YOUR_LICENSE_KEY"

Step 6: Configuring server.cfg

Set the core options of your server in server.cfg:

# Server information
sv_hostname "Your Server Name | whitebilisim.com"
sv_maxclients 64
sv_licenseKey "YOUR_LICENSE_KEY"
 
# Server password (optional)
# sv_password "yourpassword"
 
# RCON password
rcon_password "strong_rcon_password"
 
# Locale
sets locale "tr-TR"
 
# Steam Web API key
set steam_webApiKey "STEAM_API_KEY"
 
# Database connection (QBCore/ESX)
set mysql_connection_string "mysql://root:password@localhost/fivem_db"

Step 7: Setting Up the Database

Most FiveM frameworks need MariaDB or MySQL:

# Installing MariaDB (Linux)
sudo apt update
sudo apt install mariadb-server -y
sudo mysql_secure_installation
 
# Create the database
mysql -u root -p
CREATE DATABASE fivem_db;

FiveM Performance Tips

To get the most out of your server:

  1. Remove scripts you do not use: every script costs CPU and RAM
  2. Optimize the database: review your indexes regularly
  3. Enable OneSync: required for high player counts
  4. Keep artifacts current: always run a recent build
  5. Watch resource usage: the txAdmin performance panel is there for this

Picking a VDS for a High Performance FiveM Server

If you are planning 50+ players, custom vehicles and script heavy gameplay, you will need more than an entry level machine.

🚀 Our Ryzen Premium VDS packages use AMD Ryzen Threadripper PRO 5975WX processors and deliver outstanding single core performance for FiveM. That headroom keeps script heavy servers free of stutter and lag.

White Bilişim Package Suggestions for FiveM

Server SizeSuggested PackageSpecs
Small (1-20 players)ENT-34 cores, 6 GB RAM, 60 GB SSD
Medium (20-50 players)ENT-58 cores, 10 GB RAM, 100 GB SSD
Large (50-100 players)PRO-48 Ryzen cores, 10 GB RAM, 100 GB SSD
Mega (100+ players)PRO-716 Ryzen cores, 20 GB RAM, 200 GB SSD

Common Problems and Fixes

“Could not find resource” error

Make sure the script files sit in the correct place inside the resources folder and that they are loaded with an ensure line in server.cfg.

High ping and lag

  • Check your server location (Istanbul is ideal for players in Turkey)
  • Remove scripts you do not need
  • Optimize your database queries

Cannot reach txAdmin

Make sure port 40120 is open on the firewall.

Conclusion

Setting up a FiveM server takes some technical knowledge, but with the right infrastructure and this guide the process is manageable. White Bilişim provides Istanbul based hosting with a 10 Gbps network, DDoS protection and 24/7 technical support. If you want anti cheat coverage as well, a FiveGuard license is available from the same panel.

👉 Take a look at our Xeon Enterprise VDS or Ryzen Premium VDS packages and start building your own FiveM server.