How to enter the FiveM license code
Before you can start your FiveM server you have to create a license code. In this tutorial we explain how.
- Login with your CFX account on https://portal.cfx.re/login
- In the top menu click on Servers

- Press on the GENERATE KEY button

- Enter a name and press GENERATE

- Under Actions* *click on **Copy registration key

Game server
If you have a game server then you can enter your Key under the Startup section in the control panel.

VPS or Dedicated server
If you have a VPS or dedicated server then you can just enter the key in your server.cfg by editing the following parameter:
set sv_licenseKey "xxxxxxxxx"
Updated on: 09/02/2026
Thank you!