A FiveM server is configured almost entirely from server.cfg in the root of your server files.
1. Open the file
- Stop the server in the Game Panel.
- Open the Files tab and click
server.cfg.
2. The lines you will change
| Line | What it does |
|---|---|
sv_hostname | The name in the server list. |
sv_maxclients | Player slots. |
sv_licenseKey | Your FiveM licence key. The server will not run without one. |
sets tags | Labels shown in the server list. |
sets locale | The flag shown next to your server. |
set steam_webApiKey | Needed by scripts that identify players by Steam. |
endpoint_add_tcp and endpoint_add_udp | The listen address. Already set to your allocation, so leave them alone. |
3. Get a licence key
- Go to the FiveM keymaster site and sign in with your own Cfx.re account.
- Create a key. When it asks for an IP, use the IP shown for your service in the panel.
- Paste it into
sv_licenseKeyinserver.cfg.
The key belongs to your account. Do not share it, and do not run two servers on the same key at once.
4. Starting resources
- Resources live in the
resourcesfolder and are started by a line inserver.cfg. - Use
ensure resourcename, which starts the resource and restarts it cleanly if it is already running. - Order matters. Frameworks and shared libraries go before the scripts that depend on them.
5. Save and restart
- Save the file.
- Start the server and read the console. Each resource is reported as it starts, and an error names the resource that failed.
If the server starts but nobody can join, check the console for the licence key line first. See the troubleshooting guide in this category.





