Setting up your own FiveM server takes less than an evening once you know which parts you need. There are two ways to do it: run the server yourself on your own machine, or rent one with txAdmin already installed. This guide covers what each option costs, where the limits are, and how to add a framework, resources and a server list entry afterwards.
- Every FiveM server needs a free key from the Cfx.re Portal.
- The key and txAdmin cost nothing. You pay for the machine the server runs on, and for a Cfx.re subscription only above 48 players.
- Self-hosting is fine for testing. For a community that plays around the clock, a rented server is usually less work.
- ESX and Qbox are installed through a txAdmin recipe, QBCore through a recipe URL.
- Since October 2026, the server list name, description and tags are managed in the Cfx.re Portal, not in
server.cfg.
A Cfx.re account, a server key and a Windows or Linux machine that stays on while people are playing.
Account and key
- Cfx.re account: free, via "Sign up" on forum.cfx.re
- Server key: create it for free in the Cfx.re Portal (formerly Keymaster) under "Registration Keys" with "Generate Key"
- GTA V: your players need a purchased, up-to-date PC copy
When you create the key, the portal asks for a name, tagline, description and language. The server list shows these details later, and you can change them at any time. How to add your own key at ZAP-Hosting is shown in Add your own license key.
Cfx.re doesn't publish fixed hardware requirements. Officially it only asks for a 64-bit system running Windows or Linux, a good upload connection and ideally several CPU cores. The load depends almost entirely on your resources. We recommend at least 2 GB of RAM, and 4 GB for an RP server with a framework and database. Lots of custom vehicles, maps and clothing packs need a lot more.
Self-hosting means you download the FXServer software, start it on your PC or your own root server and set the server up through txAdmin in your browser. txAdmin has shipped with FXServer since 2020.
- On the server download page, download the Windows build marked "Recommended" (
server.7z). - Extract it with 7-Zip into its own folder, for example
C:\FXServer\server. - Start
FXServer.exe. A console window opens and txAdmin appears in your browser; if not, go tohttp://localhost:40120. - Enter the four-digit PIN from the console, link your Cfx.re account and set a backup password.
- In the setup wizard, choose a recipe under "Popular Recipes", for example "FiveM Basic Server (CFX Default)", paste your key and click "Save and Run Server".
The full version with screenshots is in How to set up a FiveM dedicated server on Windows.
Cfx.re treats Linux as a courtesy port: FXServer runs there, but problems get fixed faster on Windows. Download the Linux build (fx.tar.xz) from the same download page, extract it and start run.sh in a session that keeps running after you log out, for example with screen:
mkdir -p ~/fxserver && cd ~/fxserver
# copy the link to the Recommended build from docs.fivem.net/docs/server-download
wget <link-to-fx.tar.xz>
tar xf fx.tar.xz
screen -S fivem ./run.sh
Without extra start parameters this launches txAdmin, and you finish the setup in the browser as on Windows. The complete process including the firewall is described in How to set up FiveM on a Linux server.
For other players to reach your server, the game port has to be reachable from outside.
| Port | Protocol | Used for |
|---|---|---|
| 30120 | TCP and UDP | player connections |
| 40120 | TCP | txAdmin in the browser |
Don't expose the txAdmin port to the open internet. If you want to reach txAdmin on the go, use a tunnel as described in Set up a Cloudflare Tunnel for txAdmin.
Why self-hosting works
- No running costs apart from electricity
- Ideal for testing scripts locally
Why it often doesn't
- Your machine has to stay on whenever someone wants to play
- You need port forwarding on your router, and every player sees your home IP
- No protection against DDoS attacks, which are common on public RP servers
- You maintain updates, backups and the database yourself. Unsupported server builds older than three months can no longer be joined from the server list.
For a test server on your own PC, the local address is enough. In the FiveM client, press F8 and type connect 127.0.0.1:30120.
A rented server takes care of the part that eats the most time when you self-host: hardware, reachability, protection and updates. At ZAP-Hosting it works like this:
- Choose a plan and order. The server is online in about 60 seconds.
- Enter your Cfx.re key in the panel under the Configuration tab.
- Start the server and open txAdmin. The link and login details are on the dashboard.
- Pick a recipe in the setup wizard, and you're done.
txAdmin, a MariaDB database and DDoS protection come with every plan. There is no slot limit in the plan; how many players can be online at once depends on performance and your Cfx.re subscription. If you want to try it first, pick the 3 days term at checkout. Every step in the panel is explained in FiveM: txAdmin setup.
Since July 2026, FiveM is also available for GTA V Enhanced, still in early access and with its own server software. For that we offer the FiveM Enhanced server. Whether a game server or your own VPS fits better is compared in FiveM: game server or VPS?
A framework provides the basics for roleplay: characters, jobs, money and inventory. Most RP scripts require one of them. ESX, QBCore and Qbox need a MySQL or MariaDB database.
| Framework | Good for | In txAdmin |
|---|---|---|
| ESX Legacy | huge choice of scripts, lots of guides | recipe |
| QBCore | many ready-made jobs and scripts | recipe URL |
| Qbox | a further development of QBCore, runs many QBCore resources | recipe |
| Standalone | racing, drifting, freeroam without RP | "CFX Default" |
QBCore was removed from the txAdmin recipe list at the end of October 2026. You install it through "Remote URL Template" with the recipe URL from the QBCore project. What matters more than the choice itself is that the scripts you plan to use fit the framework. You don't want to switch after months of play, because player data and scripts depend on it. A detailed comparison is in the framework comparison in the Help Center.
Resources are everything you add to the server: scripts, vehicles, maps, clothing. Each resource is a folder in the resources directory and is started in server.cfg with ensure:
ensure my_script
- Resources in one click or via SFTP: FiveM: installing resources
- Uniforms for emergency services: install EUP
- Custom vehicles: install addon car mods
- Players, whitelist and restarts are managed in txAdmin, see txAdmin interface
- Notifications in Discord: txAdmin Discord bot
Only download resources from sources you trust. Leaked or "cracked" scripts often contain backdoors that let strangers take over your server.
If you can't find a ready-made script, the ZapX Maker can build your own resources with AI, see FiveM script generator.
If you want to earn money with your server, Cfx.re's rules apply: payments only through Tebex, and selling in-game currency for real money, loot boxes and real-money gambling are not allowed.
A public server appears in the FiveM server list once it runs with a valid key and port 30120 is reachable from outside. This can take up to eight minutes. To check whether the port is open, visit http://<your-ip>:30120/info.json in your browser.
Since 21 October 2026, the server list details are managed in the Cfx.re Portal, on the key itself:
- Name: up to 40 characters
- Tagline: up to 120 characters
- Description: up to 250 characters
- Tags: up to five
- Also language, banner, icon and Discord link
The old sv_hostname, sv_projectName and sv_projectDesc entries in server.cfg are deprecated. If the details are missing in the portal, the list shows "Missing server data". With sv_lan true the server doesn't appear at all. If none of this helps, work through Server not showing in the server list.
The key and txAdmin are free. What costs money is the machine:
- Self-hosted: only electricity, but your PC runs around the clock
- Root server or VPS: you set it up and maintain it yourself
- Rented FiveM server at ZAP-Hosting: 3 days from €0.95, monthly from €5.29 with 2 GB of RAM; the recommended 4 GB plan costs €8.79 a month (as of 26 November 2026)
At ZAP-Hosting the price depends on RAM, term and location, not on the number of players. Longer terms lower the monthly price. All current plans are on the FiveM server hosting page.
Cfx.re only allows more than 48 concurrent players with an Element Club subscription, from the Argentum tier up. That applies to every host and to self-hosting as well.
Can I create a FiveM server for free?
Yes, if you run it on your own machine and 48 players are enough. The key and txAdmin cost nothing. Your PC has to stay on while people play, though, and you handle port forwarding and protection yourself.
How many slots does a FiveM server have?
With OneSync, up to 48 players are free. For more you need a Cfx.re Element Club subscription and then set the number yourself with sv_maxClients in server.cfg. ZAP-Hosting plans add no slot limit of their own.
How much RAM does a FiveM server need?
We recommend at least 2 GB, and 4 GB for an RP server with a framework. Lots of custom vehicles and maps need more.
How do I log in to txAdmin?
When self-hosting, open http://localhost:40120 and enter the PIN from the console on first start. After that you sign in with your Cfx.re account or your backup password. At ZAP-Hosting the link and login details are on your server's dashboard.
Do I need GTA V for the server?
Cfx.re doesn't list GTA V as a requirement for the server. Every player needs a purchased, up-to-date PC copy of GTA V and the FiveM client, though.
How do I join my own server?
Open FiveM, press F8 and type connect followed by the IP and port, for example connect 127.0.0.1:30120. More in Connecting to the server.
For testing, your own PC is enough: download FXServer, create a key, pick a txAdmin recipe. If your community should be able to play at any time, a rented server takes hardware, reachability and DDoS protection off your hands. New to FiveM? Start with What is FiveM?

















