
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, license key, admins and resources, then copy or download the complete file, from endpoint_add_tcp through 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
Since October 21, 2026, the name, description, tags, language, banner and icon in the server list come from the Cfx Portal (portal.cfx.re), not these lines. Guide: Edit server details in the Cfx Portal
Players
OneSync
Set OneSync in txAdmin under Settings → FXServer; the default is “on”. txAdmin comments out any onesync line in server.cfg at startup, so the generator doesn't add one.
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.
Players need a Steam account linked to their Cfx.re account. Otherwise, they'll be prompted to link one when connecting. Useful if your server or resources use Steam identifiers, such as for ACE permissions. Requires server build 38004 or newer. Replaces steam_webApiKey, which has had no effect since November 4, 2026.
Admin permissions
One identifier per line, e.g., steam:110000112345678 — automatically generates the ACE rules.
Resource list
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
# Server list: Manage the name, description, tags and language in the Cfx Portal (portal.cfx.re).
sv_hostname "My FiveM Server"
sets locale "root"
# Players
sv_maxclients 32
sv_lan false
# Security
sv_scriptHookAllowed false
# Resource list
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. Configure how your server appears in the server list in the Cfx Portal.
Step 3
Choose slots
Set the maximum player count (sv_maxclients, default 32). Set OneSync in txAdmin; the generator does not add a line for it. 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).
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
Verify 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, Script Hook disabled and the default resources. The generator covers connection, license, security, admin and resource commands, 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, sv_projectName, sv_projectDesc, tags and locale. The generator simply omits empty fields. The server list no longer shows these values; since October 21, 2026, it uses the details in the Cfx Portal instead.
Players
sv_maxclients and sv_lan. The generator does not add onesync; set that in txAdmin.
License & API keys
sv_licenseKey once you enter a license key.
Security
rcon_password only if you set a password; sv_scriptHookAllowed (false by default); set sv_enforceSteamAuth true if you require a linked Steam account; and, optionally, sv_enforceGameBuild to lock the 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.
Resource list
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 server.cfg to ZapX AI Agent in your own words or set the options in the form — with a live preview for your 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
Check a FiveM resource ZIP archive for the destination folder, ensure line, dependencies, escrow, and SQL. In the panel, 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 unnecessary onesync lines.
Built by Eric Mager
Was this tool helpful?
Your feedback helps us prioritize and improve content.
FAQ
Frequently asked questions
Quick answers about the FiveM server.cfg: OneSync, license keys, admin permissions, resources, and privacy.
What is the server.cfg in FiveM?
server.cfg is the main configuration file for your FiveM server. It contains network endpoints, the server name, player count, license key, security settings, admin permissions and the ensure lines that start resources.
Which settings does the generator write to the server.cfg?
The generator writes commented sections for network settings (endpoint_add_tcp, endpoint_add_udp), server information (sv_hostname, sv_projectName, sv_projectDesc, tags, locale), players (sv_maxclients, sv_lan), license and API keys (sv_licenseKey), security (rcon_password, sv_scriptHookAllowed, sv_enforceSteamAuth, sv_enforceGameBuild), ACE admin permissions, resources as ensure lines and your own additional lines. It omits empty optional fields. It does not add OneSync; set that in txAdmin. Add other convars, such as those for your framework or database, under “Miscellaneous”.
Why isn’t my server’s name changing in the FiveM server list?
Since October 21, 2026, the name, tagline, description, language, tags, banner, icon and Discord link in the server list come from the Cfx Portal. To change them, go to your server at portal.cfx.re/servers/registration-keys and select “Edit Server Details”. sv_hostname, sets sv_projectName and sets sv_projectDesc in server.cfg no longer change the list; the FiveM documentation lists them as deprecated. If the details are missing from the portal, the list shows “Missing server data”. Guide: Edit server details in the Cfx Portal
At what player count do I need OneSync?
FiveM requires OneSync from 33 slots (sv_maxclients) and “on” mode from 65 slots. Set OneSync in txAdmin under Settings → FXServer, not in server.cfg; the default is “on”. txAdmin comments out any onesync line in server.cfg on startup, so the generator does not add one. Valid values are 1 to 2048 slots; the generator shows a warning for other values.
Where can I get a FiveM license key?
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.
How do I give myself admin permissions on my FiveM server?
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.
Which resources are included by default?
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.
Are my license key or RCON password uploaded?
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.
Can I check an existing server.cfg?
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 the server.cfg Checker
Still have 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 60 seconds.
Looking for more tools? View all FiveM tools
