Want to configure your FiveM game server to suit your project? In this guide, we’ll show you which settings to configure in ZapX, how to choose an FXServer version and game build, which values belong in server.cfg, and what ZapX automatically sets for you each time the server starts.
You configure your FiveM server in three places:
- Configuration tab in ZapX: your Cfx.re license key under Startup parameters, and the FXServer version and game build in the FXServer version card.
- server.cfg: all other settings, such as player slots, OneSync, resources, and permissions. Edit the file in the Files tab or in txAdmin using the CFG Editor.
- txAdmin: Your server runs with txAdmin. You set it up there the first time it starts and manage the whitelist, admins, and FXServer startup options, among other things. See txAdmin Setup for details on the setup process.
The txAdmin setup determines which server.cfg your server uses:
- If you set up your server using a recipe, for example through Popular recipes, the file is in the recipe’s folder, such as
<RecipeName>_XXXXXX.base/server.cfg. - If you migrated your server from the old ZAP-Hosting web interface to ZapX, the file is in the
server-datafolder.
You can find the exact path in txAdmin under Settings, in the FXServer section. Changes to server.cfg and startup parameters only take effect after a restart. After you save the startup parameters, ZapX will offer to restart the server right away.
| Startup parameter | Description |
|---|---|
| Cfx.re license key | Your free license key from the Cfx.re Portal, in the format cfxk_…. Your server won’t start without a key. During setup, txAdmin adds it to server.cfg as sv_licenseKey. |
| FXServer version (artifact) | The FXServer version your server starts with: Recommended (default), Latest, or a Fixed version. Choose it in the FXServer version card. |
| Game build (sv_enforceGameBuild) | The game version and DLC content players load. If left blank, the Artifact’s default is used. Choose it in the same card. |
ZAP-Hosting does not provide a license key. See Add Your Own License Key to learn how to create and add one.
Changing your license key later
If you enter a new key in the Configuration tab, ZapX will also replace the sv_licenseKey entry in server.cfg on the next restart, as long as the file still contains the key ZapX last added. If you added the key to server.cfg yourself, ZapX won’t change it there. In that case, also replace it in txAdmin’s CFG Editor.
In the FXServer version card in the Configuration tab, choose which Artifact your server starts with:
- Recommended: Released as stable and supported on an ongoing basis by Cfx. Your server fetches the latest version every time it starts, so it stays up to date automatically.
- Latest: Gives you new features right away, but has not yet been released as stable. This version is also fetched again each time the server starts.
- Fixed version: Your server stays on a specific build until you change it. A specific build expires after about three months. Cfx no longer supports older builds, and players will no longer be able to connect. The card shows you the last date players can join on each build.
Before switching, you can have a backup created for safety. It won’t use a backup slot and will be kept for up to 14 days. Your resources, database, and txAdmin data are preserved when switching. If a new version doesn’t work, use Revert to … to go back to the previous one.
Under Game build, choose which game version players load. New vehicles, maps, and clothing from a DLC require the matching build, for example, 3258 for Bottom Dollar Bounties or 3889 for The Kortz Center Heist. 1 loads the base game without DLCs. A new game build only takes effect after a restart, and players download it once the next time they connect.
ZapX adds the game build as a separate line at the top of your server.cfg. While a build is selected in the card, ZapX comments out your own sv_enforceGameBuild lines by adding the prefix #[ZAP-Hosting panel]. If you switch the card back to the default, ZapX removes its line and restores your lines. However, a +set sv_enforceGameBuild in txAdmin’s additional arguments is always overridden by a line in server.cfg. It’s best to set the game build only in the card.
To keep your server accessible and aligned with your settings, ZapX checks your server’s server.cfg files each time it starts and adjusts some values:
| Value | What ZapX does |
|---|---|
endpoint_add_tcp and endpoint_add_udp | Sets the port to your server’s port. |
sv_enforceGameBuild | Sets the Game build selected in the FXServer version card, if you selected one. |
sv_licenseKey | Applies a changed Cfx.re license key, as long as the file still contains the last key ZapX added. |
set sv_threadedClientHttp false | Adds this line with a ZAP-Hosting comment. It saves CPU resources once players have connected. If you set sv_threadedClientHttp yourself in the file, your line takes precedence. |
sv_listingIPOverride | Updates an existing line to use your server’s current IP address, so the server list shows the correct address. If your server is set up with a Reverse Proxy, the line remains unchanged. |
set mysql_connection_string | Adds the new password after you reset a database password for your server in the Databases tab. ZapX does not change connection details for external databases. |
If you change the ports or game build directly in the file, ZapX will reset them the next time the server starts. If you’re having database issues, see Troubleshoot Database Connection Issues.
Add these settings to server.cfg yourself, each on its own line:
| Setting | Description |
|---|---|
sv_maxclients <number> | The number of players who can connect at the same time. |
set onesync on | OneSync synchronizes the game world between players. The available options are on, legacy, and off. You need on or legacy for 33 or more players, and only on for 65 or more players. legacy is an outdated compatibility mode. |
sv_pureLevel <0-2> | Pure Mode: how strictly FiveM checks whether players are using unmodified game files. 1 blocks modified files except audio files and known graphics mods; 2 blocks all modified files. If this line is omitted, Pure Mode is off. |
set sv_enforceSteamAuth true | Only players with a Steam account linked to their Cfx.re account can join. Requires FXServer build 38004 or later and replaces the former steam_webApiKey, which has not worked since November 4, 2026. |
sv_endpointPrivacy true | Hides players’ IP addresses in public server information. |
rcon_password "<password>" | Enables RCON. Learn more in RCON. |
Setting sv_scriptHookAllowed true allows single-player mods through ScriptHook. This opens the door to trainers and cheat mods. We don’t recommend enabling it on public servers.
Manage your server name and description in the Cfx Portal
Since October 21, 2026, you can configure your server’s name, description, tags, language, and images in the server list through the Cfx Portal. sv_hostname, sv_projectName, sv_projectDesc, tags, and locale in server.cfg no longer change the server list. See Customize Server Details and Change Language / Location (Flag) to learn how.
You’ll also find the FiveM Configurator under Tools. Use the form to choose your settings and see the corresponding server.cfg in the preview. Then transfer the finished file yourself in the Files tab or using the CFG Editor. Use the server.cfg Checker to check an existing file for common errors, such as a missing license key or a OneSync mode that doesn’t match the player count.
Specify which resources your server loads using ensure lines in server.cfg, such as ensure my-script. The name must exactly match the resource folder’s name. See Install Resources to learn how to upload resources.
Because txAdmin controls your server, commands entered in the ZapX Console won’t reach it. Enter commands in txAdmin’s Live Console. Open txAdmin using Open txAdmin at the top of the server header. To start a resource without restarting, use ensure <resource> or restart <resource> there. After uploading new resources, use refresh to reload the list of available resources.
FiveM manages permissions through ACE. Use add_ace group.admin command allow to let the group.admin group run all commands, and add_principal <player identifier> group.admin to add a player to the group. Use list_aces and list_principals in the Live Console to check which permissions have been assigned. Frameworks often include their own admin systems; see Become an Admin with QBCore and Become an Admin with ESX. You can control who may join your server using the txAdmin Whitelist.
Create a backup before making major changes to your server.cfg. That way, you can always go back to the last working version.
You now know the key settings for your FiveM server. See the Dashboard Overview to find features in ZapX, and take a tour of txAdmin in txAdmin Interface. If something isn’t working properly, our Common Issues guide can help. If you have any other questions, our support team is available every day! 🙂