Rankings
Search
Advanced search Ctrl + K to open search

How to create a FiveM server

This guide walks you through creating your FiveM server for GTA V step by step: downloading the artifacts, configuring via txAdmin, the Keymaster license key, server.cfg, frameworks and optimization. Up to date as of July 2026.

Complete guide
txAdmin included
ESX / QBCore

1. Why create a FiveM server?

Running your own FiveM server lets you:

  • Create your own multiplayer GTA V server: roleplay, races, deathmatch or free roam.
  • Fully customize the gameplay with scripts, vehicles, maps (MLOs) and jobs.
  • Host from 32 to 128 players and beyond, depending on your configuration and hosting.
  • Grow a loyal community around a world and rules that are entirely your own.

In 2026, FiveM remains the most active multiplayer scene in GTA V, driven by roleplay and by the arrival of GTA V Enhanced. Creating a server has never been more accessible: txAdmin now handles the whole installation end to end, right from your browser.

2. Essential technical requirements

FiveM (FXServer) is mostly single-threaded: CPU clock speed matters more than the number of cores. Make sure your machine meets these requirements:

  • RAM : 8 GB minimum for a small server; 16 to 32 GB for an ESX/QBCore roleplay server with lots of scripts
  • CPU : 4 high-frequency cores (3.5 GHz or more): per-core speed matters more than core count
  • System : 64-bit Windows or Linux (Linux recommended for a production server)
  • Connection : Stable bandwidth and low latency; the server listens on port 30120 over TCP and UDP
  • Hosting : Local PC for testing, VPS or dedicated server with SSD/NVMe storage for a 24/7 server
Tip : NVMe storage makes a real difference to resource load times on a large roleplay server. Allow headroom: script and map packs grow quickly.

3. Choosing a framework: vanilla, ESX or QBCore?

Before installing, choose the foundation of your server. It determines what your players will be able to do:

CFX Default (no database)

The default FiveM template: free roam, with no database to configure. Ideal for getting started, testing, or a non-roleplay server (races, deathmatch, sandbox).

ESX

The classic roleplay framework: jobs, economy, inventory, companies. A very large script ecosystem. Requires a MySQL/MariaDB database.

QBCore / Qbox

The popular modern alternative for roleplay, modular and actively maintained (Qbox is a community fork). Also requires a MySQL/MariaDB database.

Tip : For a first server, start from the CFX Default template: you will have a working server in minutes, with no database. You can migrate to ESX or QBCore once you are comfortable.

4. Downloading the FXServer artifacts

The FiveM server runs on the "artifacts" (FXServer), the official Cfx.re server software. In recent builds, txAdmin is bundled in: nothing to install separately.

  1. Go to the artifacts page (runtime.fivem.net) and pick your system: Windows or Linux
  2. Download the Recommended build (stable, recommended for production), not the Latest build
  3. Extract the archive into a dedicated folder for your server (for example server/)
Linux :
Terminal
mkdir -p ~/fxserver && cd ~/fxserver
# Téléchargez l'archive .tar.xz depuis runtime.fivem.net, puis :
tar xf fx.tar.xz
Info : The Windows and Linux artifacts share the same version number and the same features. To update the server later, simply replace the artifacts with a newer version.

5. Configuring the server with txAdmin

txAdmin is the web admin panel bundled with FXServer. It drives the installation, startup and management of your server from the browser.

1
Launch FXServer

Run FXServer (FXServer.exe on Windows, or the script on Linux). txAdmin starts and shows a local address to open in your browser.

Windows :
CMD
FXServer.exe
Linux :
Terminal
./run.sh
2
Create a license key

Link your Cfx.re account, then generate a free license key on the Keymaster (keymaster.fivem.net). It is required to start the server.

3
Deploy a recipe (Recipe Deployer)

Choose a starting recipe (CFX Default, ESX or QBCore). txAdmin downloads the resources and automatically generates a working server.cfg. ESX/QBCore recipes ask for your MySQL database credentials.

Info : Make a note of the txAdmin admin password created during installation: it protects access to your server panel.

6. Configuring server.cfg

The server.cfg file is the heart of the configuration. txAdmin generates one during deployment; here are the essential directives to know:

server.cfg
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

sv_hostname "Mon serveur FiveM"
sv_maxclients 48

# Ressources de base
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure hardcap

# Base de données (ESX / QBCore)
set mysql_connection_string "mysql://user:password@localhost/fivem?charset=utf8mb4"

sv_licenseKey "VOTRE_CLE_KEYMASTER"
  • sv_hostname - Server name shown in the FiveM server list
  • sv_maxclients - Maximum number of players (up to 2048; 32 to 64 is common for roleplay)
  • sv_licenseKey - Your Keymaster license key, required to start
  • endpoint_add_tcp / endpoint_add_udp - Listening address and port (30120 by default, over TCP and UDP)
  • ensure - Each resource loads with ensure; the core resources (mapmanager, chat, spawnmanager, sessionmanager, hardcap) are essential
  • mysql_connection_string - For ESX/QBCore, set the MySQL connection string via oxmysql
Warning : Never share your server.cfg publicly: it contains your license key. Every change requires a server restart to take effect.

7. Adding resources, scripts and a database

All your server content (scripts, maps, vehicles, jobs) takes the form of resources. Here is how to manage them:

1

Place each resource in the resources/ folder (group them into subfolders, for example [esx], [qbcore], [maps])

2

Enable it in server.cfg with the ensure directive followed by the resource folder name

server.cfg
ensure es_extended
ensure esx_menu_default
Database (roleplay frameworks)

ESX and QBCore store players, vehicles and inventories in a MySQL/MariaDB database. Create the database, import the framework .sql file, then connect it via the oxmysql resource. Without a database, these frameworks will not start.

Warning : Only download resources from trusted sources (the Cfx.re forum, official repositories). "Leaked" or pirated scripts are a major source of backdoors and bans.

8. Network: ports and firewall configuration

FiveM uses port 30120 over TCP and UDP by default. For your server to be reachable from the Internet, this port must be open.

Ports to open
  • TCP + UDP 30120 (default, over TCP and UDP, can be changed in server.cfg)
  • txAdmin uses port 40120 for its web interface: keep it for administration, do not expose it publicly
Firewall rule examples
Windows Defender :
PowerShell (Admin)
New-NetFirewallRule -DisplayName "FiveM Server" -Direction Inbound -Protocol TCP -LocalPort 30120 -Action Allow
New-NetFirewallRule -DisplayName "FiveM Server UDP" -Direction Inbound -Protocol UDP -LocalPort 30120 -Action Allow
Linux UFW :
Terminal
sudo ufw allow 30120
Linux iptables :
Terminal
sudo iptables -A INPUT -p tcp --dport 30120 -j ACCEPT
sudo iptables -A INPUT -p udp --dport 30120 -j ACCEPT
Router : Behind a home router, add a forwarding rule for port 30120 (TCP and UDP) to the machine's local IP. With a FiveM hosting provider, the port is already open.

9. Administration: txAdmin, backups and updates

txAdmin centralizes all your server administration from the browser:

  • View and manage connected players live (kick, ban, warn)
  • Access the live console and restart the server in one click
  • Schedule automatic restarts and announcements
  • Monitor performance and stability, with crash protection
  • Backups: regularly back up your database and your resources/ folder off the machine. Automate it: a manual backup always ends up forgotten.
  • Updates: regularly replace the artifacts with a newer Recommended build, and keep your resources up to date to fix vulnerabilities and bugs.
Good to know : Create several admin levels in txAdmin rather than sharing the main account: you keep track of who does what.

10. Performance optimization

  • Watch each resource's compute time with the resmon command: a single poorly optimized resource can drag down the whole server.
  • Limit the number of active resources: every script consumes CPU time on the main thread. Add them gradually and test.
  • Use oxmysql (asynchronous) and optimized queries: badly handled database access is a common cause of roleplay lag.
  • Host on a high-frequency CPU and NVMe storage, and schedule regular restarts via txAdmin to start fresh.

11. Quick FAQ

The server software (FXServer artifacts) and the Keymaster license key are free. Hosting on your own machine costs nothing extra; for a 24/7 server, plan on a VPS or FiveM hosting plan starting at a few dollars per month. Only some premium scripts and packs cost money.

The machine hosting the server does not need GTA V. However, every player who connects must own GTA V (Legacy or Enhanced) on PC and have the FiveM client installed.

They are the two main roleplay frameworks. ESX is the older one, with a huge catalog of scripts. QBCore, and its Qbox fork, is more modern and modular, very popular for new servers. Both require a MySQL database.

The technical limit is 2048 players (sv_maxclients), but reality depends on your hardware and your scripts. A roleplay server often runs between 32 and 128 players; beyond that, you need a powerful CPU and careful optimization.

txAdmin is bundled with recent artifacts and strongly recommended: it handles installation, startup, backups, restarts and moderation from the browser. It is now the standard way to create and manage a FiveM server.

Is your FiveM server ready?

List your FiveM server on Top-Games to gain visibility and attract your first players. You can also browse the community's best GTA servers for inspiration.

12. Conclusion

Creating a FiveM server in 2026 is within everyone's reach: FXServer artifacts, a free Keymaster license key, txAdmin to drive everything, a well-tuned server.cfg and port 30120 open. The real work starts afterwards: choosing your scripts, tuning your roleplay and growing your community. Listing your server on Top-Games will help from your very first players.

Information

Game: GTA V
Frameworks: ESX / QBCore
Protocol: TCP / UDP
Default port: 30120
Max players: 2048
Server platforms: Windows, Linux

Quick checklist

  1. Download the FXServer artifacts
  2. Create a Keymaster license key
  3. Launch FXServer and open txAdmin
  4. Deploy a recipe (CFX Default, ESX, QBCore)
  5. Configure server.cfg
  6. Open port 30120 and list the server

Need help?

Have a question about configuring your FiveM server? Our team is here to help.