Server setup·6 min read
How to make a GTA RP server in 2026: from licence to first player, step by step
What you really need to set up your own FiveM roleplay server: licence, hosting, artifacts, txAdmin, database, framework, scripts, Discord and what all of it costs. No detours.

Creating a GTA RP server in 2026 is easier than ever and still the point where most projects fail. Not because of the technology, which is done in an evening, but because nobody wrote down beforehand what the server is supposed to be. This guide covers both parts: first the decisions, then the technology, in the order you actually need them.
Before you install anything
Three questions you should be able to answer in one sentence: who is the server for (friends, open community, whitelist)? What kind of roleplay (hardcore with applications, casual with Discord entry)? And how much time per week do you have for maintenance, support and community? The answers determine hosting, framework and how many scripts you need. A server for 20 friends does not need 300 resources.
Step 1: Cfx.re account and licence key
FiveM belongs to Cfx.re. You need an account on forum.cfx.re and a free server key from the Keymaster (keymaster.fivem.net). The key is bound to your server's IP address, so you need hosting first, then the key. Without a key the server does not start, and with a key for a different IP it does not either.
Step 2: Choose hosting
Three routes with very different effort:
| Route | For whom | Cost | Catch |
|---|---|---|---|
| Your own PC at home | Testing, developing scripts, playing with friends | 0 € | Port forwarding, your line's upload, server only runs while the PC is on |
| Game server host (panel, txAdmin preinstalled) | First public server without Linux knowledge | from about 5 to 15 € a month for 32 slots | Shared hardware, little control, database often an add-on |
| Your own VPS or dedicated server (Hetzner, Netcup, OVH) | Serious projects from 32 players | from about 10 to 40 € a month | You are the admin: Linux, firewall, backups, updates |
Step 3: Server artifacts and txAdmin
The server files are called artifacts and come from runtime.fivem.net, for Windows and Linux. Take the version marked "recommended", not the latest one, which is often not yet tested with every script. Unpack the archive into a folder, for example /opt/fivem, and start FXServer.exe or run.sh. On first start txAdmin opens in your browser on port 40120.
txAdmin is the management panel that ships with every FiveM server: it sets the server up, starts and stops it, shows the console, manages admins, bans and whitelist and restores backups. You sign in with your Cfx.re account, enter the licence key and choose a template. For a roleplay server you pick either a framework template or an empty server on which you place your framework yourself.
Step 4: Database
A roleplay server without a database forgets everything on restart: characters, accounts, vehicles, inventories. Install MariaDB (one command on Linux, an installer or XAMPP on Windows), create a database and a user and put the connection into server.cfg. Almost all frameworks use the free oxmysql script for this.
set mysql_connection_string "mysql://fivem:DEIN_PASSWORT@127.0.0.1:3306/fivem?charset=utf8mb4"
ensure oxmysqlStep 5: Framework
The framework is your server's operating system. It manages players, characters, jobs, money and talks to the database. The open frameworks ESX and Qbox are free and have the largest script selection, but require you to stitch together scripts from different developers yourself. A closed framework like 5MCustoms costs money and in return delivers modules that are built to fit together, with portal, updates and support. Which route fits depends on your time and whether you code yourself. The detailed comparison is in ESX, QBCore, Qbox or 5MCustoms.
Step 6: Scripts, vehicles, clothing, MLOs
Now the server gets content. The order that has proven itself (in detail in FiveM scripts every RP server needs): inventory and voice, admin menu and anti-cheat, phone and banking, garage and three jobs, police and medics, then the illegal side. Only after that vehicles, clothing and interiors, because they only decorate what already works. Every resource goes into the resources folder and gets an ensure line in server.cfg.
- Vehicles: add-on instead of replace, debadged, with all LOD levels. How to install them is in how to install FiveM cars.
- Clothing: add-on packs for factions and streetwear so nobody replaces the default GTA clothes.
- MLOs: interiors for police, hospital, mechanic shop, clubs. Every MLO costs streaming memory, so better ten good ones than thirty half-finished.
Step 7: Discord, rules, whitelist
A Discord server with rules, support tickets and a channel for applications belongs in place before the first stranger joins. txAdmin can whitelist players via Discord roles so that only people who have read the rules get in. Keep the rules short: ten points everyone reads in two minutes keep more players than a 40-page rulebook.
What a GTA RP server costs
| Item | One-off | Monthly |
|---|---|---|
| Cfx.re licence | 0 € | 0 € |
| Hosting (VPS or host) | 0 € | 5 to 40 € |
| Open framework (ESX, Qbox) | 0 € | 0 € |
| Paid scripts individually (inventory, phone, police, garage etc.) | 200 to 800 € | 0 €, updates depend on the vendor |
| 5MCustoms framework with modules | from 7.99 € per module or 749 € Ultimate | Core from 29.99 €, Pro from 49.99 € |
| Vehicles, clothing, MLOs | 0 € (free) to several hundred € | 0 € |
| Discord bots, website, domain | 0 to 20 € | 0 to 10 € |
Realistically, a serious server costs between 300 and 1,500 euros in the first year, depending on how much you build yourself. The biggest expense is not money but time: expect 50 to 100 hours before a server is ready for strangers.
Mistakes we see again and again
- Too many scripts before the first test. Every script nobody uses costs load time and server performance.
- No database backups. A nightly mysqldump via cron takes five minutes to set up and will save your server one day.
- Opening without anti-cheat. The first mod menus arrive on the first evening, not in week three.
- Never updating artifacts. FiveM evolves, and old artifacts eventually stop working with the client.
- Doing everything alone. One admin for tech, one for community, one for support: three people with clear roles last longer than one with all of them.
Frequently asked questions
How long does it take to create a GTA RP server?
The technology in one evening: hosting, artifacts, txAdmin, database and framework take three to four hours. Until the server is ready for strangers with scripts, vehicles, rules and Discord, two to six weeks usually pass alongside work or school.
Do I need to know how to code?
Not for running it. Installing scripts, editing config files and reading errors in the console is enough. Once you want to change or connect scripts, Lua helps, the language most FiveM scripts are written in. It is readable within a week.
Is a GTA RP server legal?
Yes. FiveM is run by Cfx.re, which has belonged to Rockstar Games since 2023. What is prohibited are servers that charge money for gameplay advantages beyond the guidelines, and streaming content you have no rights to, for example cars with real brand logos. Donations and cosmetic perks are allowed within the Cfx.re rules.
Which framework is best for beginners?
If you want to build it yourself and have time: Qbox, because it is maintained and QBCore scripts keep running. If you want a finished, coordinated server and pay for it: a closed framework with support like 5MCustoms. ESX is the safe choice for the largest script selection.
Related products
Founder of 5MCustoms
Justin has been building FiveM servers, vehicles and scripts for years. 5MCustoms is the framework that grew out of it. What you read here comes from practice, not from a product sheet.
Keep reading
All articles
Server setup·1 October 2026
Detecting cheaters on your FiveM server: how to spot them and what actually works against them
Which mod menus exist, which traces they leave, why client-side checks are useless and how a server-side anti-cheat decides. With a checklist for the first evening after opening.
5 min read

Server setup·1 October 2026
FiveM server optimization: why it stutters and how to find the cause in an hour
Server tick, client FPS and streaming are three different problems with three different tools. How to find the culprit with resmon, the profiler and txAdmin, and the ten causes that are almost always behind it.
5 min read

Server setup·1 October 2026
What a FiveM server really costs: three budgets for three kinds of server
Hosting, framework, scripts, vehicles, Discord, domain and the items nobody thinks of. Three worked examples from a friends-only server to a whitelist project, with what really adds up in the first year.
5 min read

