Who this is for
You have a FiveM server running (for example through our [txAdmin test-server guide](/en/guides/first-fivem-test-server-with-txadmin)) and now want to understand the lines in `server.cfg` and the console commands you will use every day. Everything below comes from docs.fivem.net, checked on November 26, 2026.
License key
Every server needs a free license key from the **Cfx Portal** (portal.cfx.re). In a vanilla setup it goes into `server.cfg` as `sv_licenseKey <your key>`; with txAdmin you paste it in the recipe deployer. Keep it private: anyone with the key can start a server in your name.
Slots and OneSync
| Setting | What the docs say |
|---|---|
| `sv_maxclients` | An integer from 1 to 2048 |
| 32 slots or more | Requires `onesync` set to `on` or `legacy` |
| More than 64 slots | Requires `onesync on` |
| Example config | Uses `sv_maxclients 48` and points to fivem.net/server-hosting for slot limits |
The slot limits that depend on your Cfx account are described on fivem.net/server-hosting and the Cfx Portal, not in the docs pages we checked, so we do not list prices or tiers here. Check them before you promise a player count to your community.
More slots do not mean a better server. For a new roleplay community, start small and raise the number when your staff and scripts can handle it.
Ports
The example configuration listens on **30120** for both TCP and UDP (`endpoint_add_tcp` and `endpoint_add_udp`). The docs say to change only the port, not the IP, unless the machine has several network interfaces. Your firewall or hosting panel must allow both protocols.
Server artifacts: Recommended or Latest
The server download page offers two update branches: **Recommended** and **Latest**. The txAdmin and vanilla setup guides both tell you to download the recommended build. For a live community, update on a copy first. Note that the docs call the Linux build a "courtesy port".
Resource commands
| Command | Effect |
|---|---|
| `refresh` | Rescans the resources folder and loads all manifests. Run it after adding a resource. |
| `start name` | Starts the resource if it was stopped |
| `stop name` | Stops the resource if it was started |
| `restart name` | Restarts the resource if it was started |
| `ensure name` | Restarts it if it was started, starts it if not |
Category folders work too, for example `ensure [cars]`. In `server.cfg`, `ensure` is the usual choice because it behaves the same on first boot and later.
The minimum fxmanifest.lua
Each resource needs an `fxmanifest.lua`. The docs give `fx_version 'cerulean'` as the current version and `game 'gta5'` for FiveM. Lua 5.4 is the default, so the old `lua54 'yes'` line is no longer needed.
```lua
fx_version 'cerulean'
game 'gta5'
client_script 'client.lua'
server_script 'server.lua'
```
Budget before you buy hosting
Use our [FiveM server cost calculator](/en/tools/fivem-server-cost-calculator) to add up hosting, database, domain and script costs for your own numbers.
*Based on docs.fivem.net pages checked on November 26, 2026. Hardware sizing is not published there, so we do not give CPU or RAM figures.*