
FiveM Server Configuration Generator
Configure your FiveM server’s server.cfg online with this FiveM server config generator. Set the server name, slots, license key and security options in a form or describe your server in AI mode, check the live preview, then copy or download the file. Free, with no sign-up required, right in your browser.
Built by Florian Galz
Config ready? Rent your server and apply it directly in the panel.
ZapX AI Agent
Explain how you want to configure your server
// FiveM — generated with the ZAP-Hosting Game Config Generator// zap-hosting.com/tools/fivem/config-generator// Server identitysv_hostname "ZAP-Hosting FiveM Server"sets sv_projectName "ZAP-Hosting FiveM Server"sets sv_projectDesc "A FiveM roleplay server hosted with ZAP-Hosting"sets tags "default"sets locale "root-AQ"// Capacitysv_maxclients 48// Access & securitysv_licenseKey ""rcon_password ""sv_pureLevel "0"sv_scriptHookAllowed 0sv_endpointprivacy 1sv_lan 0
Show config file preview
// FiveM — generated with the ZAP-Hosting Game Config Generator// zap-hosting.com/tools/fivem/config-generator// Server identitysv_hostname "ZAP-Hosting FiveM Server"sets sv_projectName "ZAP-Hosting FiveM Server"sets sv_projectDesc "A FiveM roleplay server hosted with ZAP-Hosting"sets tags "default"sets locale "root-AQ"// Capacitysv_maxclients 48// Access & securitysv_licenseKey ""rcon_password ""sv_pureLevel "0"sv_scriptHookAllowed 0sv_endpointprivacy 1sv_lan 0
Example result
Example: the generated server.cfg
You set the options using a form or AI Easy Mode, and the generator creates the finished server.cfg for FiveM live. Below are the first lines of the default configuration; your file contains your values and all other settings.
Example · Default configuration
Output
// FiveM — generated with the ZAP-Hosting Game Config Generator// zap-hosting.com/tools/fivem/config-generator // Server identitysv_hostname "ZAP-Hosting FiveM Server"sets sv_projectName "ZAP-Hosting FiveM Server"sets sv_projectDesc "A FiveM roleplay server hosted with ZAP-Hosting"sets tags "default"sets locale "root-AQ" // Capacitysv_maxclients 48 // Access & securitysv_licenseKey ""- +5 rowsYou can copy or download the complete file in the generator; the sample lines here only show the beginning.
Settings
FiveM server configuration: cvars set by the generator
The FiveM Server Config Generator covers 13 server.cfg cvars across three sections. Here you can see each cvar’s default value, the values allowed by the generator and its effect on your FiveM server.
Server identity
| cvar | Default value | Values | Meaning |
|---|---|---|---|
| sv_hostname | Default value: ZAP-Hosting FiveM Server | Values: Free text | Your server’s hostname in server.cfg. Manage its name in the FiveM server list in the Cfx Portal. The FiveM documentation lists sv_hostname as deprecated. |
| sv_projectName | Default value: ZAP-Hosting FiveM Server | Values: Free text | Project name in server.cfg. The generator writes it using sets; without this directive, FXServer ignores the line. It no longer affects the FiveM server list; manage the name there in the Cfx Portal. The FiveM documentation lists sets sv_projectName as deprecated. |
| sv_projectDesc | Default value: A FiveM roleplay server hosted with ZAP-Hosting | Values: Free text | Project description in server.cfg. Manage the description shown in the server list in the Cfx Portal. The FiveM documentation lists sets sv_projectDesc as deprecated. |
| tags | Default value: default | Values: Free text | Comma-separated tags in server.cfg, such as roleplay, drift, whitelist. Manage the tags players search for in the server list in the Cfx Portal, where you can add up to five. |
| locale | Default value: root-AQ | Values: root-AQ / en-US / de-DE / fr-FR / es-ES / pl-PL / pt-BR | Language and region code in server.cfg; this does not translate anything in-game. Set the language shown in the server list in the Cfx Portal. |
Capacity & sync
| cvar | Default value | Values | Meaning |
|---|---|---|---|
| sv_maxclients | Default value: 48 | Values: 1–1024 | Maximum number of players who can join at the same time. More than 32 players requires OneSync, which you set in txAdmin (default: “on”), not in server.cfg. Values significantly above 128 require a sufficiently powerful server. |
Access & security
| cvar | Default value | Values | Meaning |
|---|---|---|---|
| sv_licenseKey | Default value: — | Values: secret, masked | Links the server to your Cfx.re account and is required for it to go online. Available for free at portal.cfx.re. |
| rcon_password | Default value: — | Values: secret, masked | Enables the classic remote console. Leave blank to disable RCON; most servers manage admin permissions through txAdmin and ACE instead. |
| sv_enforceSteamAuth | Default value: 0 | Values: 0 / 1 | 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. |
| sv_pureLevel | Default value: 0 | Values: 0 / 1 / 2 | Asset integrity level: 0 allows modified game files, 1 blocks modified client files except audio files and known graphics mods, 2 blocks virtually all client-side modifications. Higher levels may also block ReShade or add-on packs. |
| sv_scriptHookAllowed | Default value: 0 | Values: 0 / 1 | Allows single-player mods via ScriptHookV alongside FiveM. Not recommended for public servers because it opens the door to trainers and cheats. |
| sv_endpointprivacy | Default value: 1 | Values: 0 / 1 | Hides players' IP addresses in the public server info API, including the server list and external tools. Best left enabled. |
| sv_lan | Default value: 0 | Values: 0 / 1 | LAN discovery only, with no listing in the public Cfx.re server list. Useful only for local testing. |
Good to know
- Since October 21, 2026, the name, description, tags, language, banner and icon in the FiveM server list come from the Cfx Portal (portal.cfx.re), not server.cfg. The generator’s project lines therefore do not change the server list.
- The generator does not set ports (endpoint_add_tcp/udp), ensure lines for QBCore, ESX or vRP, or resource-specific values such as mysql_connection_string. You add those yourself, so the server.cfg works with any framework.
- When you import an existing server.cfg, the generator loads recognized values into the form. On export, it appends all other lines, such as your ensure lines, to the end of the file. Comment lines starting with // are omitted.
- The license key and RCON password are masked in the form, never included in the share link and not sent to the AI in AI Mode.
- FXServer reads server.cfg only on startup. Restart the server after uploading it.
Guide
How to configure your FiveM server.cfg with the generator
From the first value to the restart: how to configure your FiveM server with the generator.
Step 1
Open the generator
Open the FiveM Server Config Generator. The default FiveM server.cfg is already loaded in the live preview.
Step 2
Import your existing server.cfg
Optionally, use the import feature to paste your current server.cfg or upload it as a .cfg or .txt file of up to 2 MB. Recognized values go into the form; other lines, such as your ensure lines, are preserved on export.
Step 3
Describe your server in AI mode
In Easy Mode, describe the server you want in your own words or click a suggestion, such as a whitelisted roleplay server for a small group of friends. Review the AI's suggestions and apply only the ones that fit.
Step 4
Set identity and capacity
In Advanced mode, you set the server name, project name, description, tags, locale and maximum player count. OneSync does not belong in server.cfg; txAdmin handles it. You control how your server appears in the server list through the Cfx Portal.
Step 5
Set access and security options
Enter your license key from portal.cfx.re. You can also set an RCON password, require a Steam account, set the asset integrity level, allow ScriptHook, conceal the IP address and enable LAN mode.
Step 6
Check the live preview and export
Check server.cfg in the live preview, where changed values are highlighted. Then copy or download it, or share your settings via a link without keys or passwords.
Step 7
Upload and restart your server
Upload server.cfg to your server's root directory next to the resources folder, add your framework's ensure lines, and restart the server. FXServer only reads the file on startup.
Setup
File location & applying changes
Two ways to get the config onto a server: upload it yourself or apply it directly in our panel.
The manual method
Upload yourself
- 1
Download file
Download the generated server.cfg using the button above.
- 2
Upload via file manager or FTP/SFTP
Place it in your server's root directory, next to the
resourcesfolder. - 3
Apply changes
FXServer reads server.cfg only at startup. Restart your server for the changes to take effect.
The ZAP-Hosting way
Apply in the panel, no FTP needed
Rent a FiveM server from us: download the file, place it in the file manager, and restart. All in your browser.
- File Manager directly in your browser
- No FTP client required
- Online in 60 seconds
More tools
More tools for your FiveM server
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ß
server.cfg Generator
Configure network, license, admin permissions and resources using a form.
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 about the FiveM Server Config Generator
File location, OneSync, license key, frameworks, AI mode and security—answered briefly.
Where is server.cfg located on a FiveM server, and how do I apply it?
In your server’s root directory, next to the resources folder. On a ZAP-Hosting server, you can open it through the panel’s file manager. Copying or downloading the file does not change your server yet: upload it as server.cfg and restart the server, as FXServer reads it only at startup.
At what player count do I need OneSync?
For more than 32 players. Set OneSync in txAdmin under Settings → FXServer, not in server.cfg; “on” is the default. txAdmin automatically comments out any onesync line in server.cfg, so the generator does not add one. The generator accepts sv_maxclients values from 1 to 1024. For significantly more than 128 slots, you need a sufficiently powerful server.
Where can I get a FiveM license key (sv_licenseKey)?
You can get one for free at portal.cfx.re, the successor to the former Keymaster. The key links the server to your Cfx.re account and is required for it to go online. Do not share it publicly.
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
What does the generator’s AI mode do?
In Easy Mode, describe the server you want in your own words or click a suggestion. The AI suggests suitable values and explains each change. Only the changes you select and confirm are applied. The license key and RCON password are not sent to the AI.
Does the server.cfg work with QBCore, ESX or vRP?
Yes. The generator only sets FXServer’s own cvars for identity, player count, access and security. It leaves ensure lines, ports and framework settings such as mysql_connection_string untouched; you add your framework’s resources afterward. For a complete file with network settings, admin permissions and resources, use the FiveM server.cfg Generator. Go to FiveM server.cfg Generator
Can I edit my existing server.cfg?
Yes. Use the import feature to paste your server.cfg or upload it as a .cfg or .txt file of up to 2 MB. The generator puts recognized values into the form and appends all other lines, such as your ensure lines, to the end of the exported file. Comment lines starting with // are removed.
Are the license key and RCON password secure?
The license key and RCON password are masked in the form and never included in the share link. The link contains only non-secret values you've changed from the defaults.
Is the FiveM Server Config Generator free to use without signing up?
Yes. The form, AI mode, import, copy, download and sharing features work without an account. The server.cfg is created directly in your browser. Only AI mode sends your description and non-secret values to AI, and it has a short rate limit to prevent excessive requests.
Still have questions?
Contact SupportGet your FiveM server online today
Rent your FiveM server now and apply this config directly in the panel.
No setup. No risk. Online in 60 seconds.
