How to enter the FiveM license code

FiveM阅读约需 1 分钟更新于 2026年8月28日

Every FiveM server needs a license key from Cfx.re. Without one the server refuses to start. Creating a key is free; this guide shows how to create it and where to enter it.

Generate a Key at Cfx.re

  1. Log in with your CFX account on https://portal.cfx.re/login.
  2. In the top menu, click Servers.

  1. Press the GENERATE KEY button.

  1. Enter a name and press GENERATE.

  1. Under Actions, click Copy registration key.

Game Server: Enter the Key in the Panel

  • In the game panel, open your server and click server.cfg Editor under GAME SERVER.
  • Scroll to the License & API keys section and paste the key into the FiveM license key field. Use Show / Hide to verify it.
  • Press Save changes and restart your server from the Console page.

VPS or Dedicated Server

If you run FiveM on a VPS or dedicated server instead, put the key in your server.cfg yourself:

set sv_licenseKey "xxxxxxxxx"

Finished

When the console prints Server license key authentication succeeded. Welcome! everything is OK. Keep in mind a key is bound to one server at a time; reusing it elsewhere causes server list problems. Brand new server? Continue with where to start.

这篇指南解决了您的问题吗?

还没解决?

我们的技术支持团队真正懂我们托管的游戏。提交工单,我们一起把问题解决。

提交工单