How to Make a FiveM Server in 2026 (txAdmin + Portal)
How to make a FiveM server in 2026: download FXServer, finish txAdmin setup, deploy a recipe, add a Cfx Portal key, set listing details and open port 30120.

- Applies to
- FiveM Legacy (FXServer 35245+), txAdmin v8.1, FiveM for GTAV Enhanced notes
- Last verified
On this page
- Direct Answer
- The Setup Path at a Glance
- Choose Where to Host Your FiveM Server
- Requirements From Official Sources
- Step 1: Download the FXServer Build
- Step 2: First Start and the txAdmin Web Setup
- Step 3: Deploy a Recipe
- Step 4: Get the Server Registration Key From the Cfx Portal
- Step 5: Finish the Deployment and Join
- The Minimum server.cfg, Line by Line
- Set Your Listing Details in the Cfx Portal
- Make the Server Reachable and Visible
- What Changes on FiveM for GTAV Enhanced
- Troubleshooting the First Boot
- Next Steps
Direct Answer
To make a FiveM server, download the Recommended FXServer build from the official Server Download page, extract it and run FXServer.exe, which opens txAdmin at http://localhost:40120. Link your Cfx account, deploy a Popular Recipe with a server registration key generated in the Cfx Portal, then click Save and Run Server. To go public, fill in your listing in the Portal and make sure TCP and UDP port 30120 reach the machine.
The steps follow FiveM Legacy and were checked against the official Cfx docs on 19 November 2026. FiveM for GTAV Enhanced, which is in early access, uses the same flow with the differences listed near the end.
The Setup Path at a Glance
| Stage | What you do | Detailed guide |
|---|---|---|
| Pick a host | Own PC, VPS or game server host | This page |
| Download FXServer | Recommended build from the Server Download page | Update FXServer artifacts |
| First start | Link your Cfx account in the txAdmin web setup | This page |
| Deploy a recipe | Pick a template under Popular Recipes | txAdmin recipes |
| Registration key | Generate it in the Cfx Portal during the recipe step | Server license key |
| server.cfg basics | Key, slots, endpoints and game build | This page |
| Listing details | Name, description, tags and images in the Portal | Missing server data |
| Visibility | Port 30120 and the public server list | Server not in the list |
Choose Where to Host Your FiveM Server
Decide on the host first, because it determines who installs FXServer and who deals with the network.
| Own PC | VPS or dedicated server | Game server host | |
|---|---|---|---|
| Suits | Learning, testing scripts, private sessions | Public communities that want control of files, OS and firewall | Owners who want the least setup |
| Installation | You, following the official local walkthrough | You, on Windows or Linux | An authorized hosting partner |
| Networking | Forward TCP and UDP 30120 on your router for outside players | Allow TCP and UDP 30120 in the firewall; txAdmin itself listens on TCP 40120 | Provider-specific |
| Registration key | Generated in the Portal from your Cfx account | Same | You still add the key tied to your Cfx account |
| Player slots | Up to 48; more needs Element Club Argentum or above | Same | Same |
- Testing or learning: start on your own PC. The official getting-started walkthrough ends with a local server that you join over LAN.
- Running a public community yourself: use a VPS. Cfx provides the Linux build only as a “courtesy port” and says issues are more likely to get fixed on Windows.
- Least effort: the Cfx docs call a hosting provider the “fastest and easiest way to set up a FiveM server”. Choose from the authorized partners on fivem.net/server-hosting.
Requirements From Official Sources
Cfx publishes a short list, and this section sticks to it.
- A Cfx account. You need one to link txAdmin and to generate the registration key.
- Hardware. The fivem.net FAQ recommends an x86-64 system running Linux or Windows, decent upstream connectivity and, preferably, a multi-core processor. It gives no RAM or core-count figures.
- An archive tool. 7-Zip or a similar tool opens
server.7zon Windows. On Debian and Ubuntu,fx.tar.xzneeds thexz-utilspackage. - Enhanced only: the Microsoft Visual C++ 2017 Redistributable, installed before the first run.
- The FiveM client on the PC you test from.
Step 1: Download the FXServer Build
- Open the official Server Download page.
- Select the platform (FiveM / RedM or FiveM for GTAV Enhanced), your operating system and the Recommended update branch.
- On Windows, extract
server.7zinto its own folder, for exampleC:\FXServer\server. - On Linux, download
fx.tar.xzand extract it into an empty folder:
mkdir -p ~/FXServer/server
cd ~/FXServer/server
wget <recommended-build-url>
tar xf fx.tar.xz
On 19 November 2026 the page offered Recommended build 38435 for FiveM Legacy. Use whatever the page shows on the day you install, not a number copied from a tutorial.
Old builds stop working: since 15 October 2026, connections to FXServer versions older than 35245 are no longer possible. The artifact update guide covers keeping the build up to date.
Step 2: First Start and the txAdmin Web Setup
txAdmin has been part of FXServer since early 2020, so there is nothing else to install. It starts whenever FXServer runs without a +exec server.cfg argument.
- Run
FXServer.exefrom the extracted folder (on Linux,bash ~/FXServer/server/run.sh). Your browser opens txAdmin; if it does not, go tohttp://localhost:40120. On a remote machine, open the URL printed in the console. - Enter the 4-digit PIN shown in the console.
- Click Link account, sign in with your Cfx account and authorize txAdmin.
- Set a backup password, review the Creator Platform License Agreement and the txAdmin License, tick the checkbox and click Register.
txAdmin keeps its files in a txData folder that it creates on first boot. Its web panel listens on TCP 40120, and txAdmin’s README says the port and interface can only be changed through environment variables, not in the panel. On a VPS, restrict who can reach port 40120 in the firewall.
Step 3: Deploy a Recipe
- Enter a Server Name and click Next.
- Under Deployment Type, choose Popular Recipes.
- Under Select Template, choose FiveM Basic Server (CFX Default) for a first server, leave Data Location as it is and click Save.
- Click Go to Recipe Deployer, then Next in Step 1: Review Recipe.
The official recipe index lists these FiveM templates, and its tags show the kind of server each one builds: FiveM Basic Server (CFX Default), “A minimal server, without framework”; ESX Legacy and Qbox, both tagged roleplay; vMenu, tagged freeroam; StreetKings, tagged racing; and WarfareTacticsV, a “Standalone game mode” tagged rts. The recipes repository also keeps a separate FiveM Basic Server (Enhanced) recipe. Some templates require a database server.
On 29 October 2026 the QBCore recipe was taken out of the recipe index files and marked deprecated in the repository README. The commit only edited that list, so it changes what the deployer offers, not servers that already run QBCore. For template choice and database setup, see the txAdmin recipe guide.
Step 4: Get the Server Registration Key From the Cfx Portal
The registration key, which ends up in sv_licenseKey, comes from the Cfx Portal at portal.cfx.re. Cfx describes it as a free license key. If a tutorial still points to Keymaster, use the Portal instead, because the current docs do.
- In Step 2: Input Parameters, click the Portal link to open a new tab, then sign in with Cfx.
- Click the large + button to register a new server, enter the required information and click Generate Key.
- Open the newly registered server, click Copy Key, paste it into txAdmin and click Run Recipe.
For a LAN-only test, sv_lan true skips license key checks and keeps the server off the public list. Key errors and their fixes are in the server license key guide.
Step 5: Finish the Deployment and Join
- Wait for the deployment to finish.
- Your configuration file appears. The basic recipe needs no changes, so click Save and Run Server.
- Open the FiveM client and click Connect to [ComputerName] on LAN. If the button is missing, restart the client.
The Minimum server.cfg, Line by Line
The basic Legacy recipe writes a short server.cfg. On 19 November 2026 its settings read as follows (header comments removed), before the deployer filled in the placeholders:
sv_enforceGameBuild 3751 #mp2025_02 - A Safehouse in the Hills
sv_licenseKey "{{svLicense}}"
sv_maxclients {{maxClients}}
{{serverEndpoints}}
set steam_webApiKey "none"
set resources_useSystemChat true
ensure mapmanager
ensure chat
ensure spawnmanager
ensure basic-gamemode
ensure hardcap
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don't allow quit
{{addPrincipalsMaster}}
| Line | What it does |
|---|---|
sv_licenseKey | Holds your Portal key. The deployer swaps {{svLicense}} for the key you pasted in the deployer’s Step 2. |
sv_maxclients | Player cap, from 1 to 2048; the deployer writes 48. From 32 slots OneSync must be on or legacy, and above 64 it must be on. More than 48 needs Element Club Argentum or higher. |
{{serverEndpoints}} | Becomes the endpoint_add_tcp and endpoint_add_udp lines, 0.0.0.0:30120 by default. |
sv_enforceGameBuild | Selects the game build. The recipe pins 3751 (A Safehouse in the Hills); the newest entry in the official build table is 3889 (The Kortz Center Heist). |
steam_webApiKey | Has had no effect since 4 November 2026. If your server relies on steam: identifiers, set sv_enforceSteamAuth true instead, which needs server version 38004 or later. |
ensure and add_ace | Start the default resources and let group.admin run every command except quit. |
The file’s header warns that the server listing convars no longer belong there, and the next section explains where they went.
Set Your Listing Details in the Cfx Portal
From 21 October 2026, the server list takes your server name, description, tags, language and imagery from the Cfx Portal instead of server.cfg. Per Cfx, a server whose fields are blank is displayed as “Missing server data (must be configured in Portal)”.
The recipe’s server.cfg header lists what can no longer be set in the file: sv_projectName, sv_projectDesc, sv_hostname, locale, tags, banner_connecting, banner_detail and load_server_icon.
The two official sources disagree on one item: the recipe file rules out banner_detail, while the Server Commands page still documents it with no deprecation note. Set the banner in the Portal. Field-by-field help is in the missing server data guide.
Make the Server Reachable and Visible
Players connect on port 30120 over TCP and UDP by default. Forward both protocols on a home router, or allow them in your VPS firewall, then check these points:
- Direct Connect test: if others cannot connect directly with your IP and port, the usual cause is port forwarding or a firewall.
- Give it time: a freshly started server can take up to 8 minutes to appear in the list.
- Accidentally private: keep the
#sv_master1 ""line commented out. Uncommented, it makes the server appear private and disables the connect button in the server browser. - LAN mode:
sv_lan truekeeps the server off the public list, so remove it before going live. - Strict firewalls and DDoS filters: allow every address in
https://static.cfx.re/ips.txt, the IP list Cfx infrastructure uses to talk to game servers.
The server list troubleshooting guide walks through each check in detail.
What Changes on FiveM for GTAV Enhanced
FiveM for GTAV Enhanced is in early access. The official What’s Changed page lists these differences that matter for a new server:
| Area | What is different on Enhanced |
|---|---|
| Server files | The Windows archive is cfx-server_win_x64, and the executable is cfx-server.exe instead of FXServer.exe. |
| Game build | Only the latest build (The Kortz Center Heist) is supported, and it loads by default. |
| Asset Escrow | Listed as “Not implemented yet”. |
| Pure mode | Always on; graphic mods cannot be used during early access. |
| Streamed assets | A stream_enhanced folder takes priority over stream; stream still works without one but is deprecated. |
If your server depends on escrow-protected paid resources, check the escrow row before planning a move.
Troubleshooting the First Boot
| Symptom | Likely cause | Fix |
|---|---|---|
| txAdmin does not open in the browser | The automatic redirect did not happen | Go to http://localhost:40120 and enter the PIN from the console. |
| “Missing server data (must be configured in Portal)” | Blank listing fields | Fill them in on the Portal. |
| Missing from the list, or shown as private | Missing: port forwarding or firewall. Private: an uncommented sv_master1 line | Test a direct connection, check the router and firewall, and comment the line out. |
| Red end-of-life (EOL) warning and failed joins | Outdated artifacts | Update to the current Recommended build. |
| Player cap stuck at 48 | No Element Club Argentum or higher | Get the subscription, then raise sv_maxclients and restart. |
| Very slow startup on Windows | Microsoft Defender scanning FXServer files | In an administrator PowerShell, run Add-MpPreference -ExclusionPath 'C:\FXServer\'. |
Next Steps
- Pick the template for your kind of server, a roleplay framework, vMenu for freeroam or the StreetKings racing mode, with the txAdmin recipe guide.
- Finish your public listing with the missing server data guide.
- Once the base server runs, browse FiveM scripts to extend it.
FiveM scripts from FiveCrate
Listed in the FiveCrate catalogue now.
Official documentation and repository references
- Cfx.re Docs: Setting up a FiveM Server
- Cfx.re Docs: Server Commands
- Cfx.re Docs: What's Changed in FiveM for GTAV Enhanced
- Cfx.re Forum: Portal Update: Server Metadata Management
- citizenfx/txAdmin-recipes: default FiveM server.cfg
- FiveM: Server Hosting and FAQ
- txAdmin-recipes: indexv4.json (Popular Recipes for FiveM Legacy)
Related guides
FiveM Server License Key: Portal Setup and Fixes
Get a FiveM server license key from the Cfx Portal, add it with sv_licenseKey or the txAdmin deployer, keep it secret, and fix the common license key errors.
Fix FiveM 'Missing Server Data' in the Cfx Portal
Missing server data in the FiveM server list means your Cfx Portal listing is blank. Fill in name, tagline, tags and images, and remove old server.cfg lines.
txAdmin Recipes Explained: Deploy Qbox, ESX or Default
How a txAdmin recipe builds a FiveM server: the current Popular Recipes list, each deployer step, database options, custom URLs and the QBCore deprecation.
How to Update FiveM Server Artifacts and Fix EOL Errors
Update FiveM server artifacts on Windows or Linux without losing txData: pick Recommended or Latest, then fix end-of-life, outdated and native errors.


