Skip to content

How to create a FiveM server: self-hosted or rented

License key, txAdmin, ports, frameworks and costs: how to create your own FiveM server on your own PC or as a rented server.

Marvin9 min26 November 202626 Views
How to create a FiveM server: self-hosted or rented

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.

Key takeaways

  • 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.

1. What you need for a FiveM server

Requirements

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.

2. Option 1: host a FiveM server yourself

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 Windows

  1. On the server download page, download the Windows build marked "Recommended" (server.7z).
  2. Extract it with 7-Zip into its own folder, for example C:\FXServer\server.
  3. Start FXServer.exe. A console window opens and txAdmin appears in your browser; if not, go to http://localhost:40120.
  4. Enter the four-digit PIN from the console, link your Cfx.re account and set a backup password.
  5. 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.

On Linux

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:

bash
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.

Open the ports

For other players to reach your server, the game port has to be reachable from outside.

PortProtocolUsed for
30120TCP and UDPplayer connections
40120TCPtxAdmin 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.

Pros and cons

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.
Tip

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.

3. Option 2: rent a FiveM server

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:

  1. Choose a plan and order. The server is online in about 60 seconds.
  2. Enter your Cfx.re key in the panel under the Configuration tab.
  3. Start the server and open txAdmin. The link and login details are on the dashboard.
  4. 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?

Newsletter
New articles, tutorials and server news straight to your inbox. After confirming your email — only for new customers with no previous orders.
Unsubscribe anytime. No spam.

4. Choose a framework: ESX, QBCore or standalone

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.

FrameworkGood forIn txAdmin
ESX Legacyhuge choice of scripts, lots of guidesrecipe
QBCoremany ready-made jobs and scriptsrecipe URL
Qboxa further development of QBCore, runs many QBCore resourcesrecipe
Standaloneracing, 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.

5. Install resources and set up the server

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:

cfg
ensure my_script
Warning

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.

Info

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.

6. Get your server into the server list

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.

7. How much does a FiveM server cost?

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.

Frequently Asked Questions

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.

Conclusion

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?

FiveM server hosting

Marvin

About the author

Marvin

Managing Director

Leads ZAP-Hosting and writes about the big decisions: new products, pricing, and where ZAP-Hosting is headed.

Free tools

FiveM Tools

View all

Rent a Game Server

Popular

Your own server, online in 60 seconds — over 70 games available.

DDoS protection includedFrom €4.49/mo.Online immediately
Host a Game Server now

Feedback

Was this blog post helpful?

Your feedback helps us prioritize and improve blog articles.

From category

More about Guides

More posts on the same topic—curated for you from our blog.

All articles in Guides
Guides8 min26 Nov 2026

How to make a discord bot without code: A ZapX Maker guide

Want to create a Discord bot without programming it yourself? With ZapX Maker, describe your idea in chat and get ready-to-use code in discord.js or discord.py.

Read more

In this category

Guides8 minFiveM script generator: Create ESX, QBCore, or standalone scripts with AI
Guides8 minMinecraft Plugin Creator: Build Plugins Without Coding with ZapX Maker
Guides9 minHow to Make a Minecraft Mod Without Coding: Backpacks and Wings with ZapX Maker
Guides4 minWhat is FiveM? The GTA V multiplayer mod explained
Guides6 minBest Discord bots by use case—and how to make a discord bot stay online 24/7
Guides7 minGTA 6 online, multiplayer and servers: what's confirmed
Guides8 minGTA 6 RP explained: no servers yet, how to start on FiveM

Explore more

More interesting articles

Discover the latest news, tutorials, and tips from other categories.

All articles
Aktionen4 minBlack Friday 2026 at ZAP-Hosting: here's everything that's coming
ZAP-Hosting8 minEight years of prices compared: what changed at ZAP-Hosting and at other providers
News7 minThe ZapX Partner Program: more than an affiliate link
News6 minYour voice matters: Vote in ZapX for partners, servers, and new features
News4 minGTA 6 sales numbers: 32.5 million copies before launch
News6 minThe new ZapX affiliate program is here: Share ZapX and earn on every renewal
News2 minDedicated Servers in the US: Dallas, Los Angeles and Ashburn
ZAP-Hosting2 minPHP security update of 19 November: what you should do now