FiveM Artwork

Wiki & Guides

FiveM

GTA V Multiplayer · Roleplay · Cfx.re · Rockstar Games

Rent FiveM Server

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

ParameterMeaning
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_hostnameName of the server in the FiveM server list
sv_maxclientsMaximum player count (1–2048, depending on your license — see below)
sv_licenseKeyMandatory: your license key from portal.cfx.re (successor to Keymaster)
set onesync onEnables 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_projectNameProject name — displayed prominently in the server list
sets sv_projectDescShort project description for the server list
rcon_passwordPassword for the remote console — leave empty if unused
sv_master1 ""Delists the server from the public server list (private server)
sv_endpointPrivacy trueHides players’ IP addresses from other clients
sv_enforceGameBuildEnforces a specific GTA V build (e.g. for newer DLC content)
sv_pureLevelRestricts 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:

LicensePriceMax. slots
Free key$048 (OneSync Infinity)
Element Club Argentum$15/month64
Element Club Aurum$25/month128 (Infinity)
Element Club Platinum$50/month2048 (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.
Screenshot coming soon: server.cfg in the file manager of the RespawnHost panel
You edit the server.cfg directly in the panel's file manager

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.