FiveM server.cfg Generator
Use the FiveM server.cfg Generator to create your FiveM server’s server.cfg with a form: enter the port, server name, Slots, OneSync, license key, admins, and resources, then copy or download the complete file, from endpoint_add_tcp to the ensure lines. Use the “Checker” tab to check an existing server.cfg.
Built by Eric Mager
Free, with no sign-up: the server.cfg is generated directly in your browser. Your license key and RCON password are not uploaded.
Based on the official FiveM documentation: docs.fivem.net/docs/server-manual/server-commands
server.cfg ready? Start it on your own FiveM server.
Network
Used for endpoint_add_tcp and endpoint_add_udp.
Server info
Players & sync
For 33 or more players, OneSync is automatically forced to "on".
License & API keys
Generate for free at portal.cfx.re
Security
Your RCON password is processed only locally in your browser, but do not share it with anyone.
Admin permissions
One identifier per line, e.g., steam:110000112345678 — automatically generates the ACE rules.
Resources
One resource name per line; generates ensure lines.
Other
Appended unchanged to the end of the file.
server.cfg
# Network
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
# Server info
sv_hostname "My FiveM Server"
sets locale "root"
# Players & sync
sv_maxclients 32
sv_lan false
onesync on
# Security
sv_scriptHookAllowed false
# Resources
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure rconlog
ensure baseevents
Guide
How to create your FiveM server.cfg
Every FiveM server you create needs a server.cfg. Go from form to finished file in eight steps.
Step 1
Set port
Enter your port under “Network”, or leave the default 30120. The generator uses it to write endpoint_add_tcp and endpoint_add_udp on 0.0.0.0.
Step 2
Enter server info
Enter the server name (sv_hostname) and, optionally, a project name, project description, comma-separated tags, and locale.
Step 3
Choose Slots and OneSync
Set the maximum number of players (sv_maxclients, default 32) and the OneSync mode. From 33 players, the generator automatically sets OneSync to “on”. Enable sv_lan only if the server should not be publicly listed.
Step 4
Enter license key
Enter your FiveM license key from portal.cfx.re (sv_licenseKey) and, optionally, a Steam Web API Key.
Step 5
Configure security
Optionally set an RCON password (leave it blank to disable RCON), keep Script Hook V clients blocked, and, if needed, choose a game build for the server to enforce (sv_enforceGameBuild).
Step 6
Add admins and resources
Enter your admins’ identifiers, one per line, to generate the ACE rules. Each name in the resource list becomes an ensure line; add custom commands under “Other”.
Step 7
Copy or download server.cfg
The preview updates with every change. Copy its contents or download it as a server.cfg file.
Step 8
Check with the Checker
Switch to the “Checker” tab above to check an existing or edited server.cfg for connection and security issues.
File structure
What the generator writes to your FiveM server.cfg
The server.cfg is generated in commented sections. Without changes, you get a template with port 30120, 32 Slots, OneSync on, Script Hook disabled, and the default resources. The generator covers commands for connections, licensing, security, admins, and resources, but not every FiveM convar.
Network
endpoint_add_tcp and endpoint_add_udp on 0.0.0.0 with your port. If you leave it blank, the generator uses the default port 30120.
Server info
sv_hostname, plus sv_projectName, sv_projectDesc, tags, and locale. The generator omits empty fields.
Players & sync
sv_maxclients, sv_lan, and onesync with off, legacy, or on. Above 32 Slots, the generator automatically sets OneSync to on.
License & API keys
sv_licenseKey and steam_webApiKey when you enter a license key or Steam Web API Key.
Security
rcon_password only if you set a password, sv_scriptHookAllowed (false by default), and optionally sv_enforceGameBuild to enforce a specific game build.
Admin permissions (ACE)
add_ace group.admin command allow, add_ace group.admin command.quit deny and one add_principal line per identifier for group.admin.
Resources
One ensure line per resource. Eight default resources, from mapmanager to baseevents, are prefilled.
Other
Your custom lines, such as additional convars, remain unchanged at the end of the file.
Explore more
More FiveM tools for server.cfg and resources
Server Configuration Generator
Describe your server.cfg settings to the ZapX AI Agent in your own words, or set each option manually—with a live preview for your rented FiveM server.
Built by Florian Galz
ZapX Resource Maker
Describe your FiveM Resource in your own words — AI writes the Lua code and fxmanifest.lua and packages everything as a ready-to-use .zip. Try it for free.
Built by Luca Stanek
fxmanifest.lua Generator
Configure directives in a form and get a valid fxmanifest.lua instantly.
Built by Eric Mager
FiveM Resource Installer
NewCheck a FiveM resource ZIP archive for the destination folder, ensure line, dependencies, escrow, and SQL. In the Dashboard, the tool installs the resource directly on your server.
Built by Fabian Groß
fxmanifest.lua Checker
Find missing quotation marks, unknown directives, invalid values, and outdated entries.
Built by Eric Mager
server.cfg Checker
Check network endpoints, RCON security, ScriptHookV settings, and OneSync configuration.
Built by Eric Mager
FAQ
Frequently asked questions
Quick answers about the FiveM server.cfg: OneSync, license keys, admin permissions, resources, and privacy.
The server.cfg is your FiveM server’s main configuration file. It contains network endpoints, the server name, player limit, OneSync, license key, security settings, admin permissions, and the ensure lines that start resources.
The generator writes commented sections: Network (endpoint_add_tcp, endpoint_add_udp), Server Info (sv_hostname, sv_projectName, sv_projectDesc, tags, locale), Players & Sync (sv_maxclients, sv_lan, onesync), License & API Keys (sv_licenseKey, steam_webApiKey), Security (rcon_password, sv_scriptHookAllowed, sv_enforceGameBuild), ACE admin permissions, resources as ensure lines, and your custom lines. It omits empty optional fields. Add other convars, such as those for your framework or database, under “Other”.
From 33 Slots (sv_maxclients), FiveM requires OneSync; from 65 Slots, it must be set to “on”. If you enter more than 32 players, the generator automatically sets OneSync to “on” and locks the selection. Up to 32 Slots, you can choose off, legacy, or on; on is the default. Valid values are 1 to 2048 Slots; the generator shows a warning for other values.
You can generate a license key for free in the Cfx.re portal at portal.cfx.re, formerly Keymaster. Paste it into the “FiveM License Key (sv_licenseKey)” field, and the generator adds the sv_licenseKey line with your key to the file. Without a key, it omits the line.
Enter your identifiers under “Admin Permissions”, one per line, for example steam:110000112345678. The generator writes add_ace group.admin command allow, add_ace group.admin command.quit deny, and an add_principal identifier.… group.admin line for each identifier. It automatically adds the “identifier.” prefix if missing.
The list is prefilled with mapmanager, chat, spawnmanager, sessionmanager, basic-gamemode, hardcap, rconlog, and baseevents. Each line in the resource list becomes an ensure line. You can edit the list and add your own resources, one per line.
No. The generator creates the server.cfg directly in your browser; your entries are neither uploaded nor saved. If you leave the RCON password blank, the generator does not write a rcon_password line, and RCON remains disabled. Still, don’t share the finished file publicly: it contains the license key and RCON password in plain text.
Yes. Switch to the “Checker” tab at the top of the tool and paste your server.cfg or select the file. The Checker reports errors, warnings, and tips for connection- and security-related commands, usually with line numbers. Go to server.cfg Checker
Any more questions?
Contact SupportRent your own FiveM server in 60 seconds
DDoS protection included, full control over server.cfg and resources, cancel anytime.
No setup. No risk. Online in seconds.
Looking for more tools? View all FiveM tools

