25% off first cycle
Free tool

server.cfg Generator

Configure your FiveM server.cfg in seconds: locale, OneSync, framework, random RCON and production-ready endpoints.

Input · cfg optionsCFX.RE
Locale
OneSync mode
Framework
RCON password
server.cfg
# ElectrumHosting — server.cfg generator
# Framework: QBCore

# ─── Server info ───────────────────────────────────────────────
sv_hostname "My FiveM Server | ElectrumHosting"
sets sv_projectName "My Server"
sets sv_projectDesc "Hosted on ElectrumHosting.com"
sets locale "es"
sets tags "default,es,roleplay"

# ─── Players & net ─────────────────────────────────────────────
sv_maxclients 64
onesync infinity

# ─── Security ──────────────────────────────────────────────────
sv_licenseKey "YOUR_LICENSE_KEY_HERE"
sv_endpointprivacy true
sv_authMaxVariance 1
sv_authMinTrust 5
rcon_password "M5sgGa!*ikmr3x6WcNgNVi4$"

# ─── Game ──────────────────────────────────────────────────────
sv_scriptHookAllowed 0

# ─── Framework resources ───────────────────────────────────────
ensure qb-core
ensure qb-multicharacter
ensure qb-spawn
ensure qb-inventory

# ─── Admin ─────────────────────────────────────────────────────
ensure vMenu
add_ace group.admin command allow

# ─── MySQL ─────────────────────────────────────────────────────
set mysql_connection_string "mysql://root:password@localhost/fivem?charset=utf8mb4"

# ─── Endpoints ─────────────────────────────────────────────────
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

What the FiveM server.cfg is for

The server.cfg is the file that boots your server: it sets the name, the slots, the RCON password, the resources that load and the OneSync mode. A mistake in there does not produce a friendly warning, the server simply never shows up in the list or dies a second after starting.

This generator writes a cfg with the correct structure and the load order FXServer expects, including the licence key, the security convars and the resource ensures. Copy, paste, and skip the most common round of trial and error when setting up a server.

How to use it

  1. 1Fill in the name, the slots and the language. The name is what people see in the server list, so write it the way you want to be found.
  2. 2Generate a fresh RCON password with the button and do not reuse one from another server: RCON gives full control over the console.
  3. 3Copy the cfg to your server root, add your Cfx.re licence key and start it. If something fails, the console tells you which resource did not load.

Frequently asked questions

Where do I get the licence key?
At portal.cfx.re (the old Keymaster), with your Cfx.re account. It is free and only asks for a name when you create it: it is no longer tied to an IP, so you can take it from one server to another.
Which OneSync mode should I pick?
For under 32 slots, regular OneSync is fine. If you are opening more players or running scripts that move a lot of entities, Infinity is the right call, though it costs a bit more CPU.
Is leaving RCON enabled dangerous?
It is if the password is weak or reused. Anyone with that key can run commands on your console. Use a long, unique password, and if you are not going to use RCON, leave it blank.
Why does my server not show in the list?
Almost always the licence key (expired or mis-pasted), port 30120 closed, or the sv_endpointprivacy value. Check the console at startup: the error is in the first few lines.

Need help choosing the right plan?

Our team replies in under 5 minutes.

Discord support