# server.cfg Generator

Build a complete, correctly ordered server.cfg for FiveM Legacy or FiveM for GTAV Enhanced. Every convar name and game build here comes from the Cfx.re server command reference.

- Platform: FiveM
- Canonical page: https://devtoolsgg.com/fivem/server-cfg
- Writes to: Save as server.cfg next to your server executable, then start it with +exec server.cfg.

## Options

### Edition

- `edition` FiveM edition (required). Enhanced entered early access in July 2026. A Legacy client cannot join an Enhanced server, and the other way round.

### Server identity

- `hostname` Hostname (required). The server name shown in the FiveM server list. Colour codes like ^2 work here.
- `projectName` Project name. Short name used by txAdmin and some UI resources.
- `locale` Locale. Server region code, for example en-US or fr-FR.
- `projectDesc` Description. One line describing your server.
- `discordUrl` Discord invite. Shown as a link in the server info panel.
- `gametype` Game type. Shown in the server browser next to your name.
- `mapname` Map name. Shown in the server browser. Los Santos unless you run a custom map.
- `tags` Tags. Helps players find your server. Press Enter after each tag.
- `maxClients` Max players (required). 1 to 2048. From 32 slots OneSync must be on or legacy, above 64 it must be on.

### Network

- `port` Port (required). TCP and UDP port. Must be forwarded on your router or firewall.
- `onesync` OneSync. Legacy only. Enhanced dropped non-big mode, so there it is always on.
- `syncTickRate` Sync tick rate. Enhanced only. 1 to 120, default 60. Higher reduces latency and costs CPU.
- `gameBuild` Game build (required). Locks the DLC level. Every build includes the content of the ones before it.
- `endpointPrivacy` Hide player IPs. Hides player IP addresses from public reports the server prints.
- `lan` LAN server. Keeps the server off the public list and skips the licence key check.

### Keys

- `licenseKey` Licence key (required). From portal.cfx.re. Never share this key or commit it to git.
- `steamApiKey` Steam Web API key. Optional. Enables the steam: identifier for your scripts.

### Security

- `pureLevel` Pure level. Legacy only. Enhanced always runs pure mode and cannot turn it off.
- `entityLockdown` Entity lockdown. How strict the server is about entities created by clients.
- `scriptHook` Allow ScriptHook. Leave off. Turning it on lets players run menu mods on your server.
- `devMode` Developer mode. Enables client dev tools. Use on a test server, never in production.
- `rconPassword` RCON password. Leave empty to keep RCON disabled, which is the safe default.

### Resources

- `framework` Framework (required). Adds the framework's resources to the load order automatically.
- `resources` Your resources. Extra resources to ensure, in load order. Press Enter after each one.

### Admin permissions

- `admins` Admins. Identifiers granted the admin group.

## How to cite

server.cfg Generator, devtoolsgg.com. https://devtoolsgg.com/fivem/server-cfg
