If you want to create a FiveM RP server in 2026, the good news is that you do not need to be a developer. The framework, the admin panel and most of the scripts are free, the process is well documented, and a basic server can be online within an afternoon. What you do need is to follow the steps in the right order, because the mistakes that cost people days are almost always about sequence: scripts added before the framework works, a licence key tied to the wrong server, or a server opened to the public before it is secured.
This guide shows how to create a FiveM RP server in the eight steps we see working, from the licence key to your first players, with realistic numbers for RAM and time. It is written for anyone who wants to create a FiveM RP server for a first roleplay community, and it is deliberately opinionated: where there is a safe default, we tell you which one it is.
What you need before you create a FiveM RP server
Before touching a single file to create a FiveM RP server, gather four things. First, a Cfx.re account, which is the official FiveM account and is free. Second, a game copy of Grand Theft Auto V on the computer you will test from, because you will want to join your own server. Third, somewhere to host the server, which we cover below. Fourth, a rough idea of your roleplay concept: a serious police and EMS server needs different scripts from a gang-focused one or a light social server. Having that concept in one sentence will save you from installing forty resources you never use.
It also helps to be realistic about time when you create a FiveM RP server. A basic server with a framework and a handful of scripts takes two to four hours to set up if you follow a guide. A complete roleplay server, with custom jobs, a tuned economy, custom maps and anti-cheat, is more like two to five days of configuration, and the tuning never really ends.
Step 1: get your FiveM server licence key
Every time you create a FiveM RP server you need a licence key, and without it the server will not start. The key is free and is generated from your Cfx.re account through the platform’s key management page, historically known as Keymaster. Sign in with your Cfx.re account, register a new server, give it a name, and copy the key that is generated. You will paste it into your server configuration later.
One key belongs to one server. If you change your server’s IP address or move to another host, you may need to generate or update the key again from the same page. Keep it private: anyone who has your key can run a server under your identity. Also read the Cfx.re rules on monetisation before you plan to sell anything in game, because servers that offer perks in exchange for real money are covered by separate terms.
Step 2: choose where to host your FiveM server
You can technically create a FiveM RP server at home, but for a real roleplay community it is a poor idea. Home connections are unstable, IP addresses change, uptime is not guaranteed, and a single power cut ends your session. A hosting provider that understands FiveM saves you most of that pain. These are the criteria that matter:
| Criterion | What to look for | Why it matters |
|---|---|---|
| RAM | 4 to 8 GB to start | An ESX or QBCore base with scripts is memory-hungry |
| CPU | High single-core speed | FiveM server code leans heavily on one core |
| Network | Dedicated IP, port 30120 open | Required for players to connect and for the server list |
| Control | Full panel with console and file manager | You need to read errors and restart quickly |
| Database | MySQL included | Required by ESX, QBCore and Qbox |
| Location | Close to your players | Lower latency means a smoother roleplay experience |
At Portallis you pay for RAM rather than slots, at €1 per GB per month excluding VAT. You can start at 4 GB, which is €4 a month, test your setup, and add RAM as your community grows. Our servers are located in France, in the heart of Western Europe, so players in the UK, Ireland, the Benelux countries and Germany are a short hop away. There is no minimum commitment, and you can switch the same plan to another game for free if your plans change. You can compare the plans on our FiveM server hosting page.
Step 3: pick a framework (ESX, QBCore or Qbox)
The framework is the heart of any plan to create a FiveM RP server. It manages characters, money, jobs, the economy and a large part of the data your scripts rely on. Three frameworks dominate, and the choice is less dramatic than forums make it sound, because you can change it later with some effort.
| Framework | Strengths | Watch out for |
|---|---|---|
| ESX Legacy | Largest installed base, huge script library, lots of tutorials | Some older scripts are dated and need updating |
| QBCore | Well structured, popular, plenty of resources | Many people now follow its successor, Qbox, instead |
| Qbox | Modern, built around the Overextended libraries | Smaller pool of tutorials than ESX |
Our advice if you create a FiveM RP server for the first time is to start with ESX Legacy: the community is large, the scripts are plentiful and help is easy to find when something breaks. If you are comfortable reading code and want a modern base, Qbox is worth a serious look. Whichever you choose, check how recently the repository was updated before you commit. When you order at Portallis you can pick a preconfigured ESX Legacy or QBCore base, which is installed with the MySQL database included.
Step 4: install the base files on your server
With hosting and a framework chosen, the next part of how to create a FiveM RP server is putting the files on it. On the Portallis panel this is a short routine. Sign in to your panel, open the Startup tab of your FiveM server, paste your licence key in the variable provided, and press Start. The base files download automatically, and txAdmin, the official FiveM management tool, is available straight away.
It helps to know the main parts of what you now have. The server.cfg file is the central configuration. The resources folder holds every script, map and framework. The server data folder contains what the platform itself needs and should not be edited. If you use txAdmin, it keeps its own data separately. A useful habit from day one: do not upload forty scripts at once. Start with the framework only, start the server, check the console for errors, and add resources one at a time. When something breaks, you will know exactly what caused it.
Step 5: configure your server.cfg
To create a FiveM RP server that behaves, the server.cfg file is where you declare your licence, your server name and the list of resources to load. A few settings are essential. The licence key line is mandatory. The host name sets the name shown in the server list. The max clients setting caps the number of connected players, for example 32, 64 or 128. The endpoint privacy setting hides your real IP address from players. Project name and description give your server a proper identity in the list.
Every resource you want to run has to be declared with an ensure line, and the order matters. Dependencies must start before the resources that need them. As a rule, the database connector and shared libraries come first, then the framework, then the jobs and scripts that use it. If you see errors about missing exports right after a start, a wrong order is the first thing to check.
Keep in mind that player counts above the free limit documented by Cfx.re require a paid subscription on their side, so if you plan a very large server, read the current official documentation before you promise a slot count to your community. For a new server this is not a concern: nearly everyone starts well below it.
Step 6: add your first roleplay scripts
Once the server starts cleanly, keep going as you create a FiveM RP server by adding scripts gradually. A minimal starter kit for a working roleplay server includes a police job, a society and banking system, basic needs such as hunger and thirst, an inventory, a vehicle shop, and proximity voice. Most of these exist as free, open source resources, and our guide to free FiveM scripts lists the safe sources and a tested-by-the-community starter pack.
The golden rule is to test every script on its own, or on a test server, before it goes public. One badly configured resource can crash the whole server, and a script you downloaded from an unknown source can do far worse. Open the resource monitor after each addition and watch how long each resource takes per tick. If a new script takes far more than its neighbours, remove it and look for an alternative.
Step 7: secure your server before you open it
Securing it is part of any serious effort to create a FiveM RP server, because a poorly secured server is found by cheaters and crashers surprisingly fast, usually within days of appearing in the list. A few protections are worth putting in place before you open the doors:
- Never leave a default password in place, and keep your admin credentials out of shared screenshots and chat logs.
- Use txAdmin, the official management tool, which is free and built into FiveM. It gives you player management, scheduled restarts and logs.
- Hide your real IP address from player logs by enabling endpoint privacy in your configuration.
- Restrict console and administrator permissions with access control entries, and give staff only the rights they need.
- Take regular backups of your MySQL database and your resources folder, and test that a restore actually works.
- Use an anti-cheat solution suited to your budget, and only install scripts whose source code you or someone you trust has read.
Backups deserve special attention when you create a FiveM RP server. A roleplay server is mostly data: characters, inventories, properties and money. A corrupted database or a bad update can erase months of your players’ progress, and nothing damages a community faster than that.
Step 8: open your server and attract your first players
The last stage when you create a FiveM RP server is visibility. When your server is stable, it is time to make it visible. A well-written server name and description are your first shop window in the FiveM server list, so spend time on them: say what kind of roleplay you offer, what makes you different and how people join. Then build the place where your community will live between sessions. A Discord server with at least four channels is a good start: rules, server presentation, recruitment and support.
To find your first players without an advertising budget, post an honest announcement in the relevant sections of the Cfx.re forum and in the FiveM communities on Reddit and Discord, always after reading the rules of each place. Play your own server regularly, welcome new people personally, and be patient. Roleplay communities grow through word of mouth, and a small group of regular, friendly players is worth more than a long list of one-time visitors.
How much RAM do you need to create a FiveM RP server?
This is the question everyone asks when they create a FiveM RP server, and the honest answer is that it depends on your player count and the weight of your scripts. These figures are a reasonable starting point:
| Type of server | Suggested RAM | Typical players | Cost at Portallis (excl. VAT) |
|---|---|---|---|
| Test or private server | 4 GB | 10 to 20 | €4 per month |
| Small public server | 6 GB | 20 to 40 | €6 per month |
| Community server | 8 GB | 40 to 64 | €8 per month |
| Large roleplay server | 12 GB or more | 64 to 128 | €12 or more per month |
Because there is no slot limit and the plan is billed by RAM, you can create a FiveM RP server small and add memory as your community grows, instead of paying for capacity you do not yet use.
Create your FiveM RP server in 2 minutes
txAdmin included, ESX and QBCore ready, unlimited slots and servers in Europe. €1 = 1GB (excl. VAT), no commitment.
Common mistakes when you create a FiveM RP server
After helping many people create a FiveM RP server, the same few mistakes come back again and again. The first is installing too much, too early: a server with sixty scripts on day one is impossible to debug. The second is copying a configuration from a tutorial on how to create a FiveM RP server without understanding it, then being unable to fix it when a game update changes something. The third is skipping backups until the first disaster. The fourth is opening the server to the public before testing it with a few friends, which turns every bug into a bad first impression.
The fifth, and the one people least expect when they create a FiveM RP server, is neglecting the human side. A technically perfect server with no rules, no staff and no welcoming atmosphere will lose players quickly, and a modest server with a clear identity and friendly staff will keep them. Decide early, before you create a FiveM RP server that is open to the public, how you will handle rule breaking, who the first moderators are and what your roleplay standards look like, and write them down in your Discord before you launch.
For deeper reference, the official FiveM server setup documentation is the best place to check exact commands and the latest requirements.
Frequently asked questions
Is FiveM free?
Yes. FiveM is free for players, and the server licence key is free too. If you plan to offer perks in exchange for real money, you must follow the Cfx.re monetisation rules, which you should read in their official documentation before you launch.
What is the difference between ESX and QBCore?
ESX is the oldest and most widely used roleplay framework, with a very large library of compatible scripts. QBCore is more recent and well structured, and many people now use its successor, Qbox. To create a FiveM RP server for the first time, ESX Legacy is the easiest to find help for, and you can migrate later.
Can I create a FiveM RP server without programming knowledge?
Yes. With a preconfigured ESX or QBCore base you only need to edit a few configuration files and your database settings, and no Lua or JavaScript skills are required to start. You will learn the rest gradually as you customise your server.
How much does FiveM hosting cost?
At Portallis, hosting is billed by RAM at €1 per GB per month excluding VAT. A 6 GB server, a sensible starting point for a public roleplay server, costs €6 a month. You can raise or lower the RAM at any time and switch to another game without fees.
How long does it take to create a FiveM RP server?
A basic server with a framework and a few scripts takes about two to four hours if you follow a step-by-step guide. A complete roleplay server with custom jobs, maps and anti-cheat usually takes between two and five days of configuration, plus ongoing tuning once players arrive.
Conclusion: create a FiveM RP server step by step
To create a FiveM RP server that lasts, follow the sequence: licence key, a host that suits FiveM, a framework you can get help with, a clean installation, a careful server.cfg, scripts added one at a time, security before launch, and a community plan after it. None of these steps is difficult on its own, and doing them in order is what separates a server that survives its first month from one that does not. When you are ready to put it online, you can start with our FiveM server and scale it as your community grows.