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
- Visit keymaster.fivem.net
- Sign in with your Cfx.re account
- Click “Create New Key”
- Copy the generated key
Setting the License Key
Method 1: Environment Variable (Recommended)
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 validatedIf you see license errors, verify:
- The key is correct (no extra spaces)
- The key is active in your keymaster account
- 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