FiveM Server Configuration Generator
Use this FiveM Server Config Generator to configure your FiveM server’s server.cfg online. Set the server name, Slots, OneSync, license key and security options in the form or describe your server in AI mode. Check the live preview, then copy or download the file. Free, no sign-up required and entirely in your browser.
Built by Florian Galz
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" // Capacity & syncsv_maxclients 48set onesync "on" // Access & security- +7 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 14 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 | Values | Meaning |
|---|---|---|---|
| sv_hostname | Default: ZAP-Hosting FiveM Server | Values: Free text | Your server’s hostname. The FiveM server list shows the project name (sv_projectName) instead. |
| sv_projectName | Default: ZAP-Hosting FiveM Server | Values: Free text | Your server’s name in the FiveM server list, when connecting and in Discord Rich Presence. The generator writes it with sets; without this directive, FXServer ignores the line. |
| sv_projectDesc | Default: A FiveM roleplay server hosted with ZAP-Hosting | Values: Free text | One-line description for the server list and Discord Rich Presence. |
| tags | Default: default | Values: Free text | Comma-separated tags players can filter by in the server browser, such as roleplay, drift, whitelist. |
| locale | Default: root-AQ | Values: root-AQ / en-US / de-DE / fr-FR / es-ES / pl-PL / pt-BR | Language and region identifier in the server browser. Informational only; it doesn't translate anything in-game. |
Capacity & sync
| cvar | Default | Values | Meaning |
|---|---|---|---|
| sv_maxclients | Default: 48 | Values: 1–1024 | Maximum number of concurrent players. More than 32 slots require OneSync; values well above 128 need a sufficiently powerful server. |
| onesync | Default: on | Values: off / on / legacy | Entity sync between players. “on” is the default and required for more than 32 players; “off” limits the server to 32 players; “legacy” is an outdated compatibility mode. |
Access & security
| cvar | Default | Values | Meaning |
|---|---|---|---|
| sv_licenseKey | Default: — | 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: — | Values: secret, masked | Enables the classic remote console. Leave blank to disable RCON; most servers manage admin permissions through txAdmin and ACE instead. |
| steam_webApiKey | Default: none | Values: secret, masked | For players connecting with their Steam ID, such as for Steam-based bans or whitelists. Available for free at steamcommunity.com/dev/apikey. |
| sv_pureLevel | Default: 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: 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: 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: 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
- 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.
- Your license key, RCON password and Steam Web API key are masked in the form, never included in the share link and not sent to 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 generator
Open the FiveM Server Config Generator. The default FiveM server.cfg is already loaded in the live preview.
Step 2
Import 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, set the server name, project name, description, tags, locale, maximum player count, and OneSync mode. OneSync stays “on” for more than 32 Slots.
Step 5
Set access and security options
Enter your license key from portal.cfx.re. If needed, set an RCON password, Steam Web API Key, asset integrity level, Scripthook permissions, IP masking, and 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 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 & usage
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
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Ăź
server.cfg Generator
Configure network, license, OneSync, admin permissions, and resources using a form.
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 about the FiveM Server Config Generator
File location, OneSync, license key, frameworks, AI mode and security—answered briefly.
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.
For more than 32 players. In the generator, “on” is the default and recommended setting. “off” limits the server to 32 players, while “legacy” is an outdated compatibility mode. The generator accepts sv_maxclients values from 1 to 1024. For significantly more than 128 Slots, you’ll need a sufficiently powerful server.
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.
In “Simple” mode, describe the server you want in your own words or click a suggestion. AI suggests suitable values and explains each change. Only the changes you select and confirm are applied. Your license key, RCON password and Steam Web API key are not sent to AI.
Yes. The generator only sets FXServer’s own cvars: identity, capacity, OneSync, access and security. It does not change ensure lines, ports or framework settings such as mysql_connection_string. You add your framework resources yourself afterward. To put together a complete file with networking, admin permissions and resources, use the FiveM server.cfg Generator. Go to FiveM server.cfg Generator
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.
Your license key, RCON password and Steam Web API key are masked in the form and never included in the share link. The link contains only non-secret values that you changed from the defaults.
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.
Any more 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 seconds.
