server.cfg reference
Every setting in server.cfg, the ports your server needs and how to run it behind a panel.
server.cfg is in the root of the server package. The format is FiveM-style: one setting per line, name value. Put text with spaces in "quotes". Comments start with # or //.
If there's no server.cfg, the server writes a default one, together with the basics resource.
#Example
sv_licenseKey "vx_0123456789abcdef0123456789abcdef0123456789abcdef"
sv_hostname "Eldoria RP"
sv_description "Medieval fantasy roleplay. Rules on our Discord."
sv_maxplayers 64
sv_region EU
sv_language EN
sv_tags "roleplay, magic, economy"
sv_password ""
sv_listed true
# sv_endpoint "play.myserver.com" # behind a panel/proxy with its own domain
set welcome_text "Welcome to the realm!"
set start_gold 100
ensure basics
ensure chat
ensure economy#Server settings
| Setting | What it does |
|---|---|
sv_licenseKey "vx_..." | Your server key. Required when there's a master server, also for private servers. It can never be read from Lua or Blueprint. |
sv_hostname "Name" | The name in the server list (max 64 characters). |
sv_description "..." | The description in the Selected server panel (max 300 characters). |
sv_maxplayers 48 | Maximum number of players (1-1024). |
sv_region EU | EU, NA, SA, OCE, AS ... Players can filter on it in the browser. |
sv_language EN | EN, DA, DE, FR ... Players can filter on it in the browser. |
sv_tags "roleplay, economy" | Tags. The first one is shown as the server type. |
sv_password "secret" | Empty means an open server. The password is checked on your server and never sent to the master server. |
sv_listed true | false hides the server from the list - players can still join with the address. The key is still checked. |
sv_endpoint "play.domain.com" | The address players should connect to, when the server runs behind a panel or proxy with its own domain. |
sv_queryport 7778 | The server list ping port. Default is the game port + 1. |
sv_master "https://..." | Use another master server than the one built into the game. |
sv_masterKey "..." | Use another master server key than the one built into the game. |
sv_resourcesPath "resources" | Use another resource folder. |
#Your own values
| Line | What it does |
|---|---|
set name value | Your own value. Read it in Lua with GetConvar. |
sets / setr | Same as set (FiveM-compatible). |
ensure name | Starts the resource resources/name when the server starts, in the order the lines are written. |
#Ports
| Port | Protocol | Used for |
|---|---|---|
| 7777 | UDP | The game (change with -port=) |
| 7778 | UDP | Server list ping (query) - game port + 1, or sv_queryport |
Open both in your firewall and, at home, forward them in your router. Every server on the same machine needs its own ports.
To use another game port, add -port= to the start script, e.g. -port=7787. The ping port then becomes 7788, unless you set sv_queryport. See Run the server for every start option.
Many VPS providers also have a firewall in their control panel. Open the ports there too.
#Private servers
Set sv_listed false. The server still needs a valid key, but it doesn't show up in the list. Share the address with your players instead - they join with Connect by IP.
Add sv_password if only invited players should get in.
Last updated 2026-12-06