Var FiveM
ScriptsBundlesSubscriptionsDocs
VAR
Var FiveM
ScriptsBundlesSubscriptionsDocs
Theme CustomizerAboutContact
Shop Now
GUIDE

~/guides/how-to-make-a-fivem-server

Make a FiveM Server

-- setup · updated july 2026 · var fivem team
-- license key: free (portal.cfx.re) · 48 slots at no cost · first spawn in ~20 min

Everything here is verified against the official 2026 docs, not recycled from a 2021 tutorial: the Keymaster is now the Cfx Portal, txAdmin ships inside the server files, and a full ESX or QBCore server deploys from a menu. Follow along and you will go from nothing to spawning in your own city in about twenty minutes, for exactly 0€.

-- index

  1. 01What you need
  2. 02The free license key
  3. 03Install the server (txAdmin)
  4. 04Deploy ESX or QBCore
  5. 05server.cfg, explained
  6. 06Go public: hosting & costs
  7. 07Your first scripts
  8. 08Launch checklist
  9. 09FAQ

What you actually need

Three things: a Windows PC or a Linux box (the server does NOT need GTA V installed), a free Cfx.re account, and twenty minutes. The software is free, the license key is free, and the first 48 player slots are free. The only decision with a price tag is where the server lives, and you can start on your own PC today and move to a host later, your txData folder moves with you.

Step 1: grab your free license key

Head to portal.cfx.re (the old "Keymaster" now lives here), sign in with your Cfx.re forum account and create a server registration key. It costs nothing, never expires, and each account can hold up to 3 active keys. Keep the tab open, txAdmin will ask for this key in step 3.

Step 2: install the server, the 2026 way

Download the latest Recommended server build from the official artifacts page, docs.fivem.net/docs/server-download. Recommended is the stable channel; only pick Latest if you know why.

FiveM server artifacts download page with Recommended and Latest update branches
-- artifacts download, pick Recommended. Source: official Cfx.re docs.

Extract the archive into a folder like C:\FXServer\server (Linux: ~/FXServer/server, extract fx.tar.xz). Inside you will find FXServer.exe, and here is the part old tutorials miss: txAdmin, the official web control panel, is already inside. Nothing else to install.

Extracted FXServer folder showing FXServer.exe among the server files
-- the extracted server folder. FXServer.exe is your entry point.

Run FXServer.exe. Your browser opens on localhost:40120 with a PIN displayed in the console window: type it, link your Cfx.re account, set an admin password. That panel is txAdmin, it is where you will start, stop, update and monitor everything from now on.

txAdmin first boot asking to link a Cfx.re account with the console PIN
-- first boot: enter the console PIN to link your Cfx.re account.

Step 3: deploy a full server from a recipe

This is where 2026 setups crush the old way. The txAdmin setup wizard ends on the Recipe Deployer: pick a template and it downloads and wires an entire server for you. The official list includes CFX Default (minimal vanilla), ESX Legacy, QBCore and Qbox. Undecided? Read our ESX guide and QBCore guide, or just take QBCore for the bigger tutorial ecosystem. One note: framework recipes need a MySQL/MariaDB database, install one first or pick a host that provides it.

txAdmin setup wizard welcome step creating the default server profile
-- the setup wizard walks you to the Recipe Deployer.
txAdmin Recipe Deployer reviewing the CFX Default FiveM recipe YAML before running it
-- Recipe Deployer: review, then run. ESX, QBCore and Qbox deploy the same way.

During deployment txAdmin asks for the license key from step 1. Paste it, hit Run Recipe, then Save & Run Server. Your server is alive. In the game client, press F8 and type connect localhost:30120, welcome to your city.

txAdmin recipe input parameters step asking for the server license key
-- paste the portal.cfx.re key when the recipe asks for it.

server.cfg, the six lines that matter

The recipe writes a working server.cfg for you; edit it later in txAdmin (CFG Editor). These are the lines you will actually touch, and the two that silently break new servers when missing:

endpoint_add_tcp "0.0.0.0:30120"  # the game port, TCP...
endpoint_add_udp "0.0.0.0:30120"  # ...and UDP. Forward BOTH.
sv_licenseKey "your_portal_key"   # from portal.cfx.re, never "changeme"
sv_hostname "My City | Serious RP"
sets sv_projectName "My City"     # REQUIRED to appear in the browser
sets sv_projectDesc "Serious RP"  # REQUIRED too, servers error without it
sv_maxclients 48                  # free tier ceiling
set onesync on                    # the 2026 standard, don't use "legacy"

Step 4: go public, and what it really costs

On your home connection, forward port 30120 in both TCP and UDP to your PC (UDP is the one people forget, it makes your server joinable but invisible in the browser). Never expose port 40120, that is your admin panel. Then check http://your-ip:30120/info.json from another network: if JSON comes back, you are public. Listing appears within ~8 minutes.

When the community outgrows your PC, three honest options. FiveM is bound by CPU single-thread speed, so a fast cheap VPS beats a many-core slow one:

Home PC 0€/mo

Perfect for building and testing with friends. Needs the port forward, a stable upload and your PC running 24/7. Move off it before launch day.

VPS (OVH, Hetzner) 4-15€/mo

Best value for a real launch: OVH VPS from ~4€ with game-grade anti-DDoS included, Hetzner from ~6.5€. You install the server exactly as above, on Linux. Avoid oversold budget hosts for public servers, CPU steal kills your tick rate.

Managed FiveM host 6-20€/mo

ZAP-Hosting (from ~9€, pre-licensed, no key needed), RocketNode (~6.5€), Iceline (~6.6€, no slot caps) and the other Cfx.re partners. Zero setup, web panel, built-in MySQL for the framework recipes. The right pick if the terminal is not your thing.

Step 5: your first scripts, without the leak-forum trap

A fresh framework server is an empty city. Resist the "free scripts" forums, leaked re-uploads are the classic way servers get backdoored. Start with our 7 genuinely free scripts (full Escrow builds, official Tebex delivery, lifetime updates), try everything else on the public test server, then give players a reason to stay:

Supermarket Simulator FiveM scriptSupermarket SimulatorOwnership is the strongest retention mechanic there is: players buy a store, build the interior in-game and run it with real staff. The gameplay loop that fills a brand-new city.View the scriptVar-Coins-Shop FiveM scriptVar-Coins-ShopWhen you are ready to cover the hosting bill: Tebex-topped coins spent in an in-game shop. Our best seller, and the engine behind the monetization playbook below.View the script

The launch checklist

01

License key from portal.cfx.re pasted, sv_licenseKey is not "changeme"

02

sets sv_projectName and sets sv_projectDesc both present

03

Port 30120 forwarded in TCP AND UDP, 40120 kept private

04

onesync on, sv_maxclients at 48 (free tier)

05

Framework recipe deployed (ESX / QBCore / Qbox) with MySQL running

06

txAdmin admin password set, backups scheduled in the panel

07

info.json reachable from another network, server listed within ~8 min

08

First scripts installed and tested, Discord invite in the hostname

Frequently asked questions

Is it free to make a FiveM server?

Yes. The server software (FXServer) is free, the license key is free on portal.cfx.re, and every server runs up to 48 player slots at no cost. Your only real expense is hosting, and even that is 0€ if you run it on your own PC. The optional Element Club subscription (from $15/month) only matters when you want more than 48 slots or custom clothing streaming.

How much does a FiveM server cost per month?

Home hosting: 0€. A capable VPS: roughly 4-15€/month (OVH, Hetzner). Managed FiveM hosting: from about 6-10€/month entry level. A serious 64-slot RP server on good hardware lands around 30-50€/month, plus the optional $15/month Element Club Argentum for the extra slots.

Do I need a license to run a FiveM server?

Yes, but it is free. Generate a server key on the Cfx Portal (portal.cfx.re), each account can hold up to 3 active keys. Note that every PLAYER needs a legitimate copy of GTA V; the server machine itself does not.

Does the server need GTA V installed?

No. FXServer is headless, which is exactly why a cheap Linux VPS works. Only the players connecting to your server need to own the game.

How many players can a FiveM server hold?

48 slots on the free tier. Element Club raises the cap: Argentum ($15/mo) to 64, Aurum ($25/mo) to 128, and Platinum ($50/mo) up to 2,048 with OneSync Infinity. Realistically, established RP communities run 32 to 128 concurrent players.

Can you make money with a FiveM server?

Yes, within Rockstar's rules: memberships, priority queue, cosmetics and vehicle packs are the safe zone; selling gameplay power or in-game currency for real money is not. We wrote a full playbook on this, see the monetization guide linked below.

Should I pick ESX, QBCore or Qbox?

All three deploy in one click from the txAdmin recipe list. ESX is the veteran with the deepest ecosystem, QBCore is the most popular in NoPixel-style communities, Qbox is the modern QBCore-compatible fork. If you are undecided, QBCore has the most tutorials; most Var scripts auto-detect all of them anyway.

-- var-fivem.com

Now fill your city

Server running? The hard part is retention. 28 premium scripts, 7 of them free, all installed on a public test server you can join right now. Escrow, Partially Open and Open Source, lifetime updates.

Start with the free scriptsJoin the test server

Related: Monetize your FiveM server · Best ESX scripts · Best QBCore scripts

VAR
Var FiveM

Premium FiveM scripts. Low resmon, high quality. Built for ESX, QBCore & Standalone.

28scripts
1,500+sales

Scripts

  • Marketplace
  • Bundles
  • Subscriptions
  • Theme Customizer

Most Popular

  • Supermarket Simulator
  • FiveM Casino Script
  • FiveM Coin Shop
  • FiveM Emote Menu
  • FiveM Paintball Script

Resources

  • Free Scripts
  • Guides
  • Documentation
  • Support

Company

  • About
  • Contact
  • Discord

Legal

  • Terms
  • Privacy
  • Refunds

© 2026 Var FiveM. All sales final.

Payments byTebex