Skip to Content
Getting StartedLicense Key Setup

License Key Setup

A Cfx.re license key is required to run a FiveM server. This key identifies your server and enables access to FiveM services.

Getting a License Key

  1. Visit keymaster.fivem.net 
  2. Sign in with your Cfx.re account
  3. Click “Create New Key”
  4. Copy the generated key

Setting the License Key

Method 2: server.cfg

Add to your server.cfg:

set sv_licenseKey "your-license-key-here"

Validation

After setting the key, start your server and check the console. You should see:

[txAdmin] License key validated

If you see license errors, verify:

  1. The key is correct (no extra spaces)
  2. The key is active in your keymaster account
  3. The environment variable is set correctly

Security Notes

  • Never commit your license key to version control
  • Use environment variables instead of hardcoding
  • Rotate keys if compromised

Next Steps

Last updated on