How to Make a FiveM Server: License Key, txAdmin and First Resources
A FiveM server is a custom GTA V multiplayer server. It is a more involved project than most game servers because you are building a small platform: a license key, a framework for roleplay or freeroam, a database, and a pile of scripts called resources.
This guide covers the order that works: key first, then a recipe, then your own changes. It is written for a hosted server, where the panel handles ports and slots.
- You need a Cfx.re license key from portal.cfx.re. On ChicagoServers it goes in the Cfx.re license key field on the Startup tab.
- Use txAdmin to deploy a recipe (a ready-made server setup) instead of building everything by hand.
- Framework recipes such as ESX need a MySQL or MariaDB database, which you create on the Databases tab.
- The default FiveM port is 30120 over TCP and UDP. The panel assigns your port.
- Players connect through the FiveM client with
connect ip:portin the F8 console.
On this page
What you need
- A Cfx.re account and a license key from the Cfx.re Portal at portal.cfx.re.
- A server. ChicagoServers FiveM hosting includes txAdmin by default, and works with GTA V Enhanced.
- A plan for what kind of server this is: roleplay, racing or freeroam. That decides which recipe you deploy.
- Players need the FiveM client and a legitimate copy of GTA V.
Step by step on ChicagoServers
- Create the license key
Sign in at portal.cfx.re and create a key for your server. Copy it.
- Add the key to the panel
Order a server on the FiveM server hosting page, open it in the panel, go to the Startup tab, paste the key into Cfx.re license key, click Save startup, then Restart.
- Open txAdmin
Click the txAdmin button at the top of your server's page and complete the first-time setup.
- Deploy a recipe
In the txAdmin Server Deployer choose a recipe, fill in the details, enter your license key if it asks, and click Run Recipe. Use a fresh folder. Framework recipes need a database, so create one on the Databases tab first.
- Review server.cfg
Open the Configs tab and pick server.cfg. Treat the generated file as a starting point and read it. The annotated example in FiveM server.cfg Explained shows what each line does.
- Connect
Start the FiveM client, press
F8to open the console and typeconnectfollowed by the address and port from the top of your server page.connect 123.45.67.89:30120
Pick a recipe
A recipe is a script that downloads a framework and a set of resources and writes the configuration for you. The vanilla Basic Server recipe is the simplest and needs no database. Framework recipes (ESX, Qbox and similar) add a roleplay foundation and need MySQL or MariaDB. txAdmin's own recipe index lists the QBCore recipe as deprecated, so check which maintained recipe you want before deploying. FiveM txAdmin Recipes compares them.
Add and fix resources
Resources are what make your server unique. The most common problems are all simple: each resource needs fxmanifest.lua directly in its folder, the folder name must match the name in your ensure line, and dependencies go above the resources that use them. To apply a new ensure line without a restart, type refresh and then ensure resourcename on the Console tab, pressing Send each time.
More fixes are in How to Add FiveM Resources and Fix Script Errors.
Before you invite players
- Keep
sv_scriptHookAllowedat its default of false. - Test every resource yourself. One slow script can cause hitch warnings for everybody.
- Back up on the Backups tab before large changes.
- Set up admin permissions with
add_aceandadd_principal, covered in the server.cfg guide. - Decide your rules and whitelist policy before you advertise.
Frequently asked questions
Do I need a license key for a FiveM server?
Yes. Create one at portal.cfx.re and paste it into the Cfx.re license key field on the Startup tab.
What port does FiveM use?
The default is 30120 over TCP and UDP. The panel assigns your port on ChicagoServers.
What is txAdmin?
txAdmin is FiveM's web admin tool. It can deploy recipes, manage players, restart the server and show logs. ChicagoServers opens it from a button on your server page.
Do I need a database for FiveM?
Framework recipes such as ESX and Qbox need a MySQL or MariaDB database. The basic vanilla recipe does not.
How do players connect?
They start the FiveM client, press F8 and type connect followed by the server address and port.
Not sure what a term means? See the game server glossary.