01
What the key is for
Cfx.re is the publisher of FiveM and RedM. Every server must identify itself to Cfx.re with a licence key: without it, the server stops at start-up. The key links the server to your Cfx.re account.
The same platform is used for RedM: a key is created the same way for a Red Dead Redemption 2 server (see the creating a RedM server guide).
02
Creating your key on the Cfx.re portal
- Sign in to the Cfx.re portal with your Cfx.re account (the same one as the FiveM forum); create it if you don't have one.
- Open the section dedicated to server keys and request a new key.
- Give it a name you will recognise (the server name, for example) and enter the server's IP address if you are asked for it.
- Copy the generated key. It is personal: don't publish it or share it on Discord.
One key per server: if you have a test server and a public server, create two.
03
Adding it to server.cfg
The key is declared in the server.cfg file with the sv_licenseKey variable:
sv_licenseKey "your_key_here"
If you install the server with txAdmin, the first-time setup wizard asks for the key and writes it for you. The txAdmin guide details this step, and the creating a FiveM server guide covers the other lines of the file.
04
The 48-player limit and Patreon
With a free key, a FiveM server welcomes up to 48 players. Beyond that, Cfx.re requires a key tied to a Patreon subscription, paid every month. The number of slots is set with sv_maxclients, and OneSync mode (set onesync on) must be enabled to welcome a lot of players.
On our FiveM plans, the licence key is set up when the server is created, and the Patreon-linked key is provided and managed by us beyond 48 players, at no extra cost. Under our terms, these keys do not list the server in FiveM's public server list: players connect with the server address or your Discord.
05
Licence key errors
- The server stops at start-up reporting a missing or invalid key: check the
sv_licenseKey line, with no extra space or missing quote, and that it appears only once in server.cfg.
- The key is rejected after moving the server: if an IP address was linked to the key, it no longer matches. Create a new key for the new machine.
- The same key on two servers: one of them ends up rejected. One key per server.
- A key published by mistake on GitHub or Discord: delete it on the Cfx.re portal and create another one.
When the server starts but players can't connect, the problem is more likely the ports: the game server ports guide covers them.
06
Nothing to manage, at CloudFive
On a FiveM plan, the server is ready about 30 seconds after payment, with the licence key already set up and txAdmin installed. ESX, QBCore or Qbox install in one click with the MariaDB database, and Anti-DDoS Premium protects the server from delivery, on Ryzen 9 9950X and NVMe.
07
Frequently asked questions
Where do I create a FiveM licence key?
On the portal of Cfx.re, FiveM's publisher, signed in with your Cfx.re account (the FiveM forum one). The basic key is free.
Where do I put the FiveM licence key?
In the server.cfg file, with the sv_licenseKey line followed by the key. With txAdmin, the first-time setup wizard asks for it and writes it for you.
Do I have to pay for more than 48 players on FiveM?
Yes: beyond 48 players, Cfx.re requires a key tied to a Patreon subscription. On our FiveM plans, it is provided and managed at no extra cost.
Why is my FiveM key invalid?
The sv_licenseKey line is misspelled or duplicated, the key is used on another server, or the server changed IP address. In that last case, create a new key.