Making your own FiveM server takes three steps. Download the server files from Cfx.re, start them once so txAdmin opens in your browser, and let txAdmin deploy a recipe, which gives you a working ESX, Qbox or QBCore server with its database. You’ll need a free Cfx.re account and license key, a Windows or Linux machine, MariaDB for the framework recipes, and port 30120 open on TCP and UDP so players can join.
This guide is about running a server. If you only want to play on someone else’s, FiveM and GTA V are all you need.
Before you start
- A Cfx.re account, the same one you use on the Cfx.re forum. txAdmin links to it during setup.
- A server license key. You can register one for free on the Cfx.re Portal, under server registration keys. Keep it private.
- A Windows or Linux machine that stays on while people play. If you’d rather rent one with the server preinstalled, Cfx.re keeps a list of game server hosting providers.
- MariaDB, for the framework recipes. Qbox supports MariaDB 10.9.0 or newer and doesn’t support MySQL. The ESX docs warn against XAMPP. A database tool such as HeidiSQL, which the QBCore docs use, lets you look at the tables.
- On Linux, the
xz or xz-utils package to extract the server files.
- On the PC you play from, FiveM and GTA V of the same edition as the server. FiveM Legacy requires GTA V Legacy, and FiveM for GTAV Enhanced requires GTA V Enhanced.
Choose Legacy or Enhanced server files
The Cfx.re Server Download page asks you three things: the platform (“FiveM / RedM” for Legacy, or “FiveM for GTAV Enhanced”), the operating system, and the update branch (Recommended or Latest). Each platform ships its own file names:
Asset Escrow is the Cfx.re system that protects escrowed paid scripts. Cfx.re’s Legacy vs Enhanced page lists it as not implemented on Enhanced, so if you’ll run escrowed scripts, check that page before you pick Enhanced. From here on, the steps use the Legacy file names.
Download the server files
-
On the Server Download page, choose your platform, your operating system and the Recommended branch. Old links to runtime.fivem.net/artifacts redirect to that page.
-
On Windows, create C:\FXServer\server and extract server.7z into it with 7-Zip or WinRAR.
-
On Linux, create the folder and move into it:
mkdir -p ~/FXServer/server
cd ~/FXServer/server
-
On Linux, copy the build’s link from the page, download it with wget and that link, then extract it:
tar xf fx.tar.xz
You should now see FXServer.exe (Windows) or run.sh (Linux) in the folder. Don’t put your server data in here. txAdmin asks for a separate data folder later, in the recipe step. There’s one exception to the Recommended branch: Qbox’s install page asks for the newest build in the list.
Start txAdmin and link your account
- On Windows, double-click
FXServer.exe. On Linux, go to ~/FXServer/server and run bash run.sh with no +exec argument. Cfx.re’s txAdmin page runs it inside screen, so it keeps going after you close the terminal. The console shows the txAdmin address and a PIN, and on Windows a browser tab opens.
- Enter the PIN and click Link Account.
- Log in with your Cfx.re account and click Yes, Allow.
- Create a password for the txAdmin panel.
- Enter a server name and click Next.
The txAdmin panel uses TCP port 40120 by default. That port is only for you: players join on 30120.
Deploy an ESX, Qbox or QBCore recipe
A recipe downloads a framework and its starter resources, imports the SQL into your database and writes server.cfg for you. txAdmin’s Popular Recipes list has two framework recipes, ESX Legacy and Qbox. Cfx.re took QBCore off that list on 29 October 2026 and marked its recipe deprecated, but the recipe file is still online, so you can deploy it by its URL:
If you haven’t picked a framework yet, how ESX, Qbox and QBCore compare helps you choose.
- For the deployment type, choose Popular Recipes, then your recipe. For QBCore, choose Remote URL Template instead, paste
https://raw.githubusercontent.com/qbcore-fivem/txAdminRecipe/main/qbcore.yaml and click Next.
- Keep the data folder txAdmin suggests, or pick your own outside
C:\FXServer\server. It must be empty or not exist yet, and its parent folder must exist. Choose with care, because moving it later means changing its path in server.cfg and in txAdmin.
- Click Go to Recipe Deployer, check the recipe and continue. Paste your license key into Server Registration Key.
- Open Show/Hide Database options (advanced) and check the details: host
localhost, port 3306, your MariaDB user and password, and the database name. Watch out for Delete Database. It’s on by default and deletes any existing database with that name, so use a new name or turn it off. Then click Run Recipe, and the deployer downloads the resources and imports the SQL.
- Look over the
server.cfg it wrote and click Save & Run Server. On the first QBCore start, let yarn finish installing before you stop anything.
The server starts and txAdmin shows its console.
Read the server.cfg the recipe wrote
The recipe puts server.cfg in the data folder. These are the lines that decide whether players can find and join your server. The values come from the example server.cfg on Cfx.re’s vanilla setup page.
Open port 30120
- In your router, forward port 30120 on TCP and UDP to the machine running the server. On a rented machine, open it in the host’s firewall settings instead.
- In the machine’s own firewall, allow port 30120 on TCP and UDP.
- From outside your network, open your public IP with
:30120/info.json on the end, such as http://203.0.113.5:30120/info.json. If the page loads, the port is open. Cfx.re also points to canyouseeme.org for checking the port.
Check it works
-
On the PC that runs the server, start FiveM and press F8 to open the console.
-
Run:
connect 127.0.0.1:30120
FiveM loads into your server.
-
Ask a player on another network to run connect with your public IP and :30120.
-
Give the server list time. A server can take up to 8 minutes to show up there after it starts.
If it fails
- Players on other networks time out, but you can join from the server PC: port forwarding or a firewall is blocking 30120. Run the
info.json check from outside your network.
- The server shows as private in the list: the
sv_master1 line in server.cfg lost its #. Put the # back at the start of the line.
- The server starts slowly on Windows: Microsoft Defender may be scanning the server files. Open PowerShell as administrator and run
Add-MpPreference -ExclusionPath 'C:\FXServer\', with your own folder if yours is different.
- Antivirus removes
FXServer.exe: the ESX docs call this a false positive. Restore the file and add the same Defender exclusion.
- Your database is MySQL and you chose Qbox: Qbox doesn’t support MySQL. Install MariaDB 10.9.0 or newer and run the recipe again.
- You started FXServer yourself, no resources start and players get
timed out or connection refused: Cfx.re traces this to a missing +exec server.cfg. Start FXServer.exe with no arguments and let txAdmin run it.
Replace the default police job
Police and EMS are the jobs most other roleplay runs into. A robbery ends in an arrest, and a crash ends at the hospital. The recipes install free versions of both, which makes them the first jobs worth replacing.
Our Advanced Police Job supports ESX, Qbox and QBCore. It covers arrests, patrol gear, vehicle radar, live bodycams and as many stations as you need. Its README asks for es_extended, qb-core or qbox, for mysql-async or oxmysql, and for bl_ui for the default cuff minigames. Remove the recipe’s police job (esx_policejob, qbx_police or qb-policejob) before you start ours, so you don’t end up with two resources running the same job. The showcase video is 4:45 long if you want to see it first.
Replace the default ambulance job
Our Advanced Ambulance Job supports ESX, Qbox and QBCore. Every injury has a body part, a type and a severity, and EMS treat it with the matching item. Downed players crawl and bleed out on your timer until CPR, a defibrillator or adrenaline brings them back. While 2 or fewer EMS are online, a hospital medic NPC revives players. You download the stretcher and wheelchair models separately, and the README links them.
Add the rest of your scripts
Pick the rest by what your players do. The scripts a roleplay server needs walks through them. If you plan to run several of ours, compare our subscription plans. Both jobs are in Essential and in Ultimate.
Then how to install FiveM scripts takes each one from the download to its first start on your server.