
FiveM server.cfg generator
Build a server.cfg for FiveM, FiveM for GTAV Enhanced or RedM with a live preview, or import your own to update it and find the lines that no longer do anything.
server.cfg generator
Build your server.cfg
Have a server.cfg already? Import it to edit and check it. Lines the generator doesn't know stay exactly as they are.
The file is read by this page on your device and is never uploaded. Up to 5,000 lines.
Connection
0.0.0.0 listens on every network interface. The docs' advice: only change the IP if your server has more than one, otherwise change the port only. TCP and UDP get the same address.
Players and OneSync
Players get a steam: identifier when they've linked Steam to their Cfx.re account. The old steam_webApiKey setting stopped working on 4 November 2026.
License, build and RCON
Leave it empty to get the placeholder changeme and fill it in on the server. What you type stays in this tab: it isn't uploaded or saved.
New makes a random 24-character password on your device. Like the license key, it isn't saved.
Server list and Cfx Portal
Since 21 October 2026 the server list takes your name, description, tags, language and images from the Cfx Portal, not from server.cfg. Fill them in here, then copy them into the Portal with the buttons at the end of this section.
A name, not a list of keywords or tags. That was the docs' rule for sv_projectName, where names that broke it were cut off in the server list.
Written as a sentence.
73:8 wide: 2560 × 280 pixels recommended, at least 1825 × 200. It shows on your server's details page and while players connect. Add it in the Portal too.
For the Cfx Portal
Copy each one into your server's page at portal.cfx.re.
- Name
- Description
- Tags
- Language
- Banner 2560 × 280 px recommended, at least 1825 × 200
- Profile image 512 × 512 px recommended, at least 256 × 256
- Discord a link to your Discord can be added there too
Resources
Each becomes an ensure line. A name in square brackets, like [cars], starts a whole folder of resources.
Admins and permissions
Use fivem:, steam:, license:, license2:, discord: or ip:. A SteamID64, STEAM_0 or [U:1:…] ID is turned into the steam: hex for you; more formats in the Steam ID finder. Text after # becomes a comment.
Security and sync
FiveM Enhanced only
server.cfg
Copy and Download include everything. Copy share-safe hides your license key, passwords, secrets, database connection strings and IP identifiers, for when you ask for help on a forum or Discord.
Checks
AddedChangedcompared with your file
Your settings are saved in this browser, except the license key, the RCON password and imported files.
Checks follow the Cfx.re docs as of 21 November 2026; they can't see your resources, host or Portal settings. Livecounts.nl is not affiliated with Cfx.re or Rockstar Games.
How to make and use your server.cfg
- Pick FiveM, FiveM Enhanced or RedM, then go through the seven sections. The preview and the checks update as you type, and every fix button changes the file for you.
- Paste your license key from portal.cfx.re, or keep the changeme placeholder and fill it in on the server.
- Select Download and put server.cfg in your server-data folder. On a game host, open server.cfg in its file manager and paste the copied text instead.
- Start the server from that folder, for example with
FXServer.exe +exec server.cfgon Windows,cfx-server.exe +exec server.cfgfor FiveM Enhanced, orbash ~/FXServer/server/run.sh +exec server.cfgon Linux. - Fill in your name, description, tags and images in the Cfx Portal, with the copy buttons at the end of section 4.
Advertisement
server.cfg lines that changed in 2026
Changes by Cfx.re in October and November 2026 turned common server.cfg lines into dead weight. Import your file above and the checks point them out, with a button to remove them.
| Line | What changed and what to use |
|---|---|
sv_hostname, sv_projectName, sv_projectDesc, tags, locale, load_server_icon | From 21 October 2026 the server list takes the name, description, tags, language and images from the Cfx Portal. Servers can show up to five unique tags. |
steam_webApiKey, steam_webApiDomain | No effect since 4 November 2026. Players who linked Steam to their Cfx.re account still get a steam: identifier; set sv_enforceSteamAuth true makes that link required. |
banner_connecting | No longer has any effect. sets banner_detail now shows on the details page and while connecting. |
onesync_enabled | FXServer warns that it is deprecated. Use set onesync on or legacy. |
FiveM Enhanced and RedM
FiveM for GTAV Enhanced, still in early access, reads the same kind of server.cfg with a few differences: endpoint_add_tcp and endpoint_add_udp take one endpoint each, P2P sync and OneSync's non-big mode are gone, and only the newest game build, The Kortz Center Heist, is supported, or sv_enforceGameBuild 1 for the base game without DLC. Pure mode is always on, and sv_syncTickRate (1 to 120, default 60) replaces sv_useAccurateSends. Choose FiveM Enhanced above and the generator follows these rules.
RedM runs on the same FXServer: add set gamename rdr3, which the generator does when you choose RedM. The docs list one RedM game build to enforce, 1491, the September 2022 update.
Player slots and OneSync
sv_maxclients goes from 1 to 2048. From 32 slots you need OneSync on or legacy, and above 64 OneSync on. How many slots you may use also depends on your Cfx.re subscription, which fivem.net lists like this for FiveM:
| Slots | OneSync | Subscription |
|---|---|---|
| 1 to 31 | Any, off works too | None |
| 32 to 48 | On or legacy | None: 48 is the default |
| 49 to 64 | On or legacy | Element Club Argentum or higher |
| 65 to 128 | On | Aurum or Platinum |
| 129 to 2048 | On | Platinum |
Your server.cfg stays in your browser
The generator, the checks and the import all run on your device. An imported file is read by this page and never uploaded, and nothing you type is sent to Livecounts.nl or Cfx.re. Your choices are saved in this browser so they're still there next time, except the license key, the RCON password and imported files; Reset everything removes them.
Sources, checked 21 November 2026: Cfx.re Docs, Server Commands (every directive, default and limit used here), Setting Up a Vanilla FXServer (example server.cfg, start commands, RedM), What's Changed in FiveM for GTAV Enhanced and GetPlayerIdentifiers (identifier types); Cfx.re Forum, Portal Update: Server Metadata Management (14 October 2026); FiveM, Server hosting (slots per subscription); citizenfx/fivem on GitHub, ServerGameState.cpp (the onesync_enabled warning).
Frequently asked questions
Why does my server say "Missing server data" in the server list?
Since 21 October 2026 the server list takes your name, description, tags, language and images from the Cfx Portal instead of server.cfg. Cfx.re copied over recent details where it had them; otherwise the fields are empty and the list shows Missing server data (must be configured in Portal). Fill them in on portal.cfx.re.
What is the maximum sv_maxclients?
2048. From 32 slots the server needs OneSync on or legacy, and above 64 OneSync on. FiveM servers get 48 slots by default; fivem.net lists up to 64 with Element Club Argentum, 128 with Aurum and 2048 with Platinum, the last two with OneSync on.
Does steam_webApiKey still work?
No. Since 4 November 2026 it has no effect. Players who have linked Steam to their Cfx.re account still get a steam: identifier. If your admin lines or resources depend on it, add set sv_enforceSteamAuth true (server version 38004 or later) so every player needs that link.
How do I make myself admin on my server?
Add your identifier under Admins, for example fivem:123456 or your SteamID64, which becomes a steam: hex. The generator writes add_principal identifier.fivem:123456 group.admin plus two add_ace lines that allow every command except quit. Restart the server afterwards.
Is my license key sent anywhere?
No. The key only goes into the text on your screen and the file you download. It isn't uploaded or saved in your browser, and the share-safe copy replaces it with changeme. Still keep it out of screenshots and shared files.
More free tools
Advertisement