How to Make a FiveM Server: Key, txAdmin, Database and ESX or QBCore

The four pieces of a FiveM server in the order you need them: the Cfx.re server key, txAdmin and its recipes, the MySQL database, and the choice between ESX and QBCore.

By
· 9 min read
Read inesen
Dark block-art skyline with the title of this guide on how to make a FiveM server

Anyone asking how to make a FiveM server needs four things, in this order: a free server key from Cfx.re, the FXServer program with its data folder, a MySQL database if the city will run a roleplay framework, and the framework itself. This guide walks through each one, then shows how the same pieces fit on our FiveM server hosting.

  • The key: free, created with your own Cfx.re account at portal.cfx.re. Without it the server does not start.
  • txAdmin: the web panel bundled with FXServer. Its recipes install a whole framework in one pass on a machine you run yourself.
  • The database: ESX and QBCore both store players, jobs and vehicles in MySQL or MariaDB. A plain freeroam server needs none.
  • The framework: ESX is maintained for FiveM today. QBCore's own documentation now says the project has moved elsewhere; details in section 4.
  • On 1up: FiveM is in beta, can be created on Free and stays online 24/7 from Casual. A server with a database needs 4 GB, which is Starter. txAdmin is not available on our servers.

1. What a FiveM server is made of

FiveM is Cfx.re's multiplayer modification for Grand Theft Auto V. The server program is called FXServer and Cfx.re publishes it as numbered builds, the "artifacts". Next to it lives a data folder that the Cfx.re setup guide has you clone from the cfx-server-data repository: it holds server.cfg and a resources folder with every script and map.

The sample server.cfg in that guide opens port 30120 on TCP and UDP, sets sv_maxclients 48, turns on OneSync and starts a handful of default resources with ensure lines. The 48 is not arbitrary: the Cfx.re hosting page says a server supports up to 48 players by default, and more only with a paid Cfx.re subscription.

Every player needs their own copy of GTA V and the FiveM client. The server never holds the game files.

2. Create the Cfx.re server key

The Cfx.re documentation puts it in one line: register a free license key on the Cfx Portal. The key belongs to your Cfx.re account and identifies your server to Cfx.re every time it starts.

  1. Sign in at portal.cfx.re with your Cfx.re account.
  2. Open Servers, then Registration keys, and create a key.
  3. Copy it whole and treat it like a password. The txAdmin documentation warns not to paste it into chats or public support tickets.

On a server you run yourself, the key goes into server.cfg as sv_licenseKey "yourKey", or into the txAdmin setup when it asks for it.

3. What txAdmin does

txAdmin is the management panel that ships inside FXServer. In the Cfx.re txAdmin guide, written for Windows, you run FXServer.exe, a browser page opens with a PIN, you link your Cfx.re account and choose a password for the panel. The txAdmin documentation gives 40120 as the port of that web panel.

The part that matters for a new city is the recipe. In the setup you name the server, pick Popular Recipes and choose a template. The Cfx.re guide uses CFX Default FiveM and adds that other templates may require a database server. A recipe is a list of tasks: txAdmin's documentation says they can write files and execute database queries. The ESX recipe, for example, downloads the framework, runs its SQL file against your database and writes a server.cfg. You paste the key, press Run Recipe, then Save & Run Server.

txAdmin also offers two other starts: pointing it at an existing server data folder, or a custom recipe URL whose tasks you should read before running.

4. ESX or QBCore

Both are roleplay frameworks: jobs, money, inventories, vehicles, housing. Both need the database of section 5 and both load it through the oxmysql resource. Where they stand on 26 November 2026:

ESX LegacyQBCore
Install guidedocs.esx-framework.org: txAdmin, Popular Recipes, ESX Legacyqbcore.org: txAdmin, QBCore Framework template
Database"ESX requires a MySQL-compatible database"; the guide links MariaDBMariaDB with HeidiSQL in its Windows guide
What the recipe bringsThe ESX core, the ESX Legacy add-ons, oxmysql, oxlib, pma-voice, bob74ipl; it runs legacy.sqlqb-core and several dozen qb- resources, oxmysql, pma-voice; it runs qbcore.sql
Project statusThe esx_core repository received commits in October 2026Its documentation says QBCore "has withdrawn from other platforms" and that the existing guides cover "the previous QBCore implementation"

That last row deserves a careful read. The front page of the QBCore documentation now presents QBCore as the roleplay framework of another platform, built on Unreal Engine 5, and keeps the FiveM guides "as a reference". The qb-core repository and the txAdmin recipe could still be downloaded from GitHub when we checked, so a QBCore city can still be built. The page does not say who will maintain that FiveM code. If you are starting from zero and want a framework whose own documentation still targets FiveM, that is ESX today. If your scripts, your developer or your community are already on QBCore, read that page before committing.

The ESX guide asks for about 10 GB of free disk and notes that txAdmin will not create a missing folder for you.

5. The MySQL database

A framework is mostly a set of tables. The oxmysql documentation states that MariaDB is highly recommended over every version of MySQL and advises installing it directly rather than through XAMPP. The server finds the database through one line in server.cfg, which must come before any resource starts:

set mysql_connection_string "mysql://user:password@localhost:3306/fivem"

oxmysql also accepts the form user=...;password=...;host=...;port=3306;database=..., useful when a password has characters that break a URL. It replaces the older mysql-async and ghmattimysql resources, so those can be deleted.

On your own machine the txAdmin deployer asks for host, port, user, password and database name; the ESX guide uses localhost, 3306 and a database called esx_legacy.

6. Create a FiveM server on 1up

Here the machine, FXServer and the port are ours and the key is yours.

  1. Create the key as in section 2.
  2. In the panel choose FiveM. The wizard has a required field, Cfx.re server key. It checks only the shape of what you paste: cfxk_ followed by 20 to 59 letters, digits or underscores. Whether the key is real is decided by Cfx.re when the server starts.
  3. In the configuration step, Add a database is a switch with four chips: Standalone, ESX, QBCore and vRP. The chips only turn the switch on or off for you; they do not install a framework.
  4. Create the server. The address to share appears on its Overview.

We store the key encrypted and never show it again. If Cfx.re refuses it, the server stops instead of restarting in a loop and the panel shows the card Cfx.re refused this server's key with the steps to follow; the new key goes in Game, Advanced, Cfx.re server key.

Two limits to know before you plan a city. First, txAdmin is not available on 1up: our image removes it, so recipes cannot run there. The panel console takes FXServer commands, and files go through the file manager or SFTP. Second, player slots follow the plan and never pass 48.

7. The database and a framework on 1up

With Add a database on, the server gets its own MariaDB 10.11 running next to FXServer. It takes 2 GB of RAM and 1 GB of disk out of the plan, on top of the 2 GB FiveM itself needs, so the total is 4 GB. When the plan is too small the wizard offers the cheapest one that fits and, beside it, Create without a database. You can add it later from the Database tab with Create database; the server restarts for about a minute.

What the tab gives you:

  • Connection details and the set mysql_connection_string line, written as the first line of server.cfg on a new server. The button Write to server.cfg writes it again after you regenerate the password.
  • Open phpMyAdmin, which signs you in without typing the password.
  • Import a .sql file (.sql or .sql.gz, up to 256 MB; larger files go over SFTP to the /import folder), a full export and a wipe that saves a copy first.
  • Remote access, off by default, for HeidiSQL or DBeaver from your PC, limited to the IP addresses you list, 10 at most.
  • Every server backup includes the database, and a restore lets you choose files, database or both.

Without txAdmin, a framework is installed by hand, doing what the recipe would do:

  1. Download the resources the recipe lists (for ESX: the core, the add-ons, oxmysql, ox_lib and the rest in the table above) and upload them to server-data/resources.
  2. Import the framework's SQL file (legacy.sql for ESX) in the Database tab.
  3. Add the framework's ensure lines and settings to server.cfg, below the connection line. Do not copy sv_licenseKey, sv_maxclients or the endpoint lines from a recipe's server.cfg, and remove any {{placeholder}} it carries: txAdmin fills those in, and on 1up the panel applies the key, the slots and the port at every start.
  4. Restart and read the console. A script error names the resource that failed.

What we have proven ourselves: with a real key, FXServer build 37872 starts on our image and oxmysql connects to the database through that line. We have not installed a complete ESX or QBCore city for this guide, so follow the framework's own documentation for its settings.

8. Joining, and what it costs

Players open FiveM, press F8 and type connect followed by the address from the panel, as the Cfx.re console reference describes.

PlanPrice per monthRAMPlayer slotsBackupsFits
Free€02 GB4noneTrying FiveM without a database
Casual€32 GB61A 24/7 freeroam for friends
Starter€54 GB103FiveM plus the database
Pro€108 GB305A framework with room for scripts
Studio€2016 GB4810A full 48-slot city

Prices include VAT and are those of 26 November 2026; the pricing page has the current ones. On Starter the database takes half of the memory, which is enough to learn a framework with a few friends; a city with dozens of scripts is more comfortable on Pro. If you are weighing whether to pay at all, our free vs paid game server hosting comparison goes through it, and for roleplay on a lighter engine there is the Garry's Mod dedicated server guide.

Checked against FXServer build 37872, the build our image pins, on 26 November 2026.

Change log

  • 26 November 2026: first version.

FiveM is a modification framework by Cfx.re for Grand Theft Auto V. 1up-servers is not approved, sponsored, or endorsed by Rockstar Games.

Frequently asked questions

Create a free server key at portal.cfx.re, download FXServer and the cfx-server-data folder, put the key in server.cfg or in the txAdmin setup, and start it. For roleplay, add a MariaDB database and a framework such as ESX.

About the authorFounder, developer and support

I'm Xabier Martínez Parada, the founder of 1up-servers. I've run game servers for my friends since 2007 (World of Warcraft private servers and Counter-Strike came first). These days I write the code for 1up, look after its servers and answer support myself.

More about me

Keep reading