
Wiki & Guides
FiveM
GTA V Multiplayer · Roleplay · Cfx.re · Rockstar Games
FiveM server.cfg Explained: All Important Parameters
FiveM's server.cfg explained: all important parameters from sv_licenseKey and sv_maxclients to OneSync as a table — with examples and a slot tier overview.
Last updated July 20, 2026 · RespawnHost
On this page
What is the server.cfg?
The server.cfg is the central configuration file of your FiveM server: it defines the name, slots, license key, network endpoints and server behavior, and is loaded at startup via +exec server.cfg. If you want to understand your server, you need to understand this file — here are all the important parameters at a glance.
The most important parameters as a table
| Parameter | Meaning |
|---|---|
endpoint_add_tcp "0.0.0.0:30120" | TCP endpoint of the server — 30120 is the default port |
endpoint_add_udp "0.0.0.0:30120" | UDP endpoint — same port, for game traffic |
sv_hostname | Name of the server in the FiveM server list |
sv_maxclients | Maximum player count (1–2048, depending on your license — see below) |
sv_licenseKey | Mandatory: your license key from portal.cfx.re (successor to Keymaster) |
set onesync on | Enables OneSync Infinity — required for high player counts |
sets tags "..." | Tags for the server list (e.g. “roleplay”, “english”) |
sets locale "en-US" | Language/region of the server for the server list |
sets sv_projectName | Project name — displayed prominently in the server list |
sets sv_projectDesc | Short project description for the server list |
rcon_password | Password for the remote console — leave empty if unused |
sv_master1 "" | Delists the server from the public server list (private server) |
sv_endpointPrivacy true | Hides players’ IP addresses from other clients |
sv_enforceGameBuild | Enforces a specific GTA V build (e.g. for newer DLC content) |
sv_pureLevel | Restricts client-side modifications (anti-cheat hardening) |
You start resources in the server.cfg with ensure <resourcename> — more on console commands in the ACE and admin guide.
Warning
Treat your sv_licenseKey and rcon_password like passwords: never share them in screenshots, pastebins or public repos.
What is OneSync and how many slots are possible?
OneSync Infinity (set onesync on) is FiveM’s modern synchronization mode: up to 2048 players, 65535 object IDs and a culling radius of 424 units — entities outside this radius are not synchronized for the respective player, which drastically reduces load.
How many slots you can actually use depends on your Cfx.re license:
| License | Price | Max. slots |
|---|---|---|
| Free key | $0 | 48 (OneSync Infinity) |
| Element Club Argentum | $15/month | 64 |
| Element Club Aurum | $25/month | 128 (Infinity) |
| Element Club Platinum | $50/month | 2048 (Infinity) |
You subscribe directly with Cfx.re — your RespawnHost package independently determines the hardware only. Which RAM size fits which player count is covered in How much RAM does a FiveM server need?
How do I make my server private?
Two parameters from the table handle this:
sv_master1 ""— the server no longer appears in the public server list. Players then connect directly via the IP.sv_endpointPrivacy true— additionally hides your players’ IP addresses from other clients.
Frequently asked questions
What is FiveM’s default port?
30120, as TCP and UDP (endpoint_add_tcp/endpoint_add_udp). At RespawnHost, the port is already set up correctly.
What happens without sv_licenseKey? The server won’t start — the license key from portal.cfx.re is mandatory for every FiveM server. How to get one is covered in the setup guide.
Should I enable OneSync?
Yes — set onesync on enables OneSync Infinity and is the foundation of modern FiveM servers. Even the free 48-slot tier runs on it.
What is sv_enforceGameBuild for? It defines which GTA V build clients must use — necessary when your resources use content from newer DLCs.
Related guides
- Rent a FiveM Server — Pay-Per-Use or fixed package, from €6/month
- Creating and setting up a server — Ordering, license key, first start
- txAdmin basics — Convenient configuration in the web panel
- ACE permissions & admin commands — rcon, ensure & co. in detail
