How to create a FiveM server? The A-to-Z guide
Par Benjamin Dayan · PDG
· Mis à jour le December 5, 2026 · Lecture 7 min
Contents
Creating a FiveM server is much more than installing a binary: you need to lay an RP foundation, choose a framework, add resources and open to the public cleanly. Here's the complete journey, from the machine to your first game night.
Step 1: the machine and the installation
It all starts with a server that hosts FiveM: either your own machine/VPS, or a host. On it you install the cfx-server artifacts, generate a license key on the Cfx.re portal (formerly keymaster) and launch txAdmin. The details are in our guide how to install FiveM on a server. The official procedure itself is described in the Cfx.re documentation.
Step 2: choose the type of server
- Structured RP: start from a framework (ESX or QBCore) deployed via a txAdmin "recipe".
- Free / freeroam server: a lighter vanilla base, to expand as you wish.
This choice shapes all your future resources: decide it before installing anything.
Step 3: configure server.cfg
In server.cfg: server name, sv_maxClients (slots), sv_licenseKey, port 30120 and the list of resources with ensure. It's the central file of your server.
Step 4: add the resources
Install your scripts and mods in the resources folder, then declare them. To get off to a good start, see the best scripts for a FiveM server and how to add mods to a FiveM server.
Step 5: open to the public
- Ports 30120 TCP/UDP open and accessible.
- Active Anti-DDoS protection (essential the moment the server is public).
- A server available 24/7: a personal PC you turn off at night won't handle the load of a community.
Test everything locally with a few trusted players before opening to the general public. A server that crashes on launch day drives the community away.
The turnkey version
Self-hosting is educational but time-consuming. With a host, artifacts, ports and Anti-DDoS are already handled: on a Fly-Serv FiveM server, creation is instant and the FlyPanel handles txAdmin, updates and files in one click. The high-frequency Ryzen 9 7950X3D CPU ensures smooth RP. You also skip setting up XAMPP or WAMP for the ESX or QBCore database: a MariaDB database is provisioned on delivery, and the frameworks hook into it in a few clicks.
Conclusion
Machine, framework, resources, going public: follow these steps and your RP server will run. To move fast and hassle-free, create your FiveM server with Fly-Serv from €1.99/month. Want to budget the project? See How much does a FiveM server cost?
Frequently asked questions
How much does a FiveM server cost?
At Fly-Serv, the 2 GB RAM entry plan is €1.99/month, and the most popular RP configuration, 8 GB, is €6.99/month. Self-hosting, the licence itself is free: the cost is the machine, running 24 hours a day.
How long does the install take?
With a host, creation is automatic: expect under a minute between payment and receiving your access details. Self-hosting there is no waiting time, but the 5 steps above are yours to carry out.
Do you need a licence key, and does it cost anything?
Yes, every FiveM server needs one: it is generated free of charge on the cfx.re keymaster, 1 key per server, and pasted into sv_licenseKey. Without a valid key the server refuses connections from the moment it starts.
Which port has to be open?
FiveM listens on port 30120, over both TCP and UDP: both must be open for the server to be reachable and listed. With a host that port is already open and there is no forwarding to set up.
How much RAM do you need?
2 GB is enough for a test or development server of up to 10 players, and 8 GB covers an ESX or QBCore RP server of 10 to 40 players. Past 40 players, with MLOs and add-on vehicles, plan for 16 GB.
Read next
- How to add mods to a FiveM server?Vehicles, MLOs, skins, resources: how to cleanly add mods to a FiveM server via the resources folder and the ensure line in server.cfg.
- How to install FiveM on a server? The complete guidecfx-server artifacts, license key, txAdmin, server.cfg: every step to install a FiveM server, self-hosted or with a 1-click host.
- What are the best scripts for a FiveM server?ESX, QBCore, jobs, economy, HUD, inventory… A rundown of the best scripts for a FiveM RP server, and how to choose them wisely based on your framework.