Would you like to configure your RedM game server for Red Dead Redemption 2 to suit your project? In this guide, we'll show you which settings to adjust in ZapX, how to choose the FXServer version and game build, which values go in server.cfg, and what ZapX automatically sets for you each time the server starts.
RedM runs on the same server core as FiveM: the FXServer from Cfx.re. You configure your 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 count, OneSync, resources, and permissions. Edit this file in the Files tab or in txAdmin's CFG Editor.
- txAdmin: Your server runs with txAdmin. Use it to set up your server the first time it starts and manage it day to day. See txAdmin Setup for details on the setup process.
The server.cfg file is in your server's data directory, alongside the resources folder. The txAdmin setup determines which directory this is:
- 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, Latest, or a Fixed version. Latest is selected by default for new RedM servers. Choose the version in the FXServer version card. |
| Game build (sv_enforceGameBuild) | Which Red Dead Redemption 2 game build players download. Leave it blank to use the Artifact's default. Choose it in the same card. |
ZAP-Hosting does not provide a license key. For instructions on creating one in the Cfx.re Portal and adding it to your server, see Add your own license key.
ZapX passes your server's database credentials to txAdmin. This allows a recipe to use them directly during setup. Manage your databases in the Databases tab, and import your own SQL files as described in Import an SQL file.
In the FXServer version card in the Configuration tab, choose which Artifact your server starts with:
- Recommended: approved by Cfx as stable and supported on an ongoing basis. Your server retrieves the current version each time it starts, so it stays up to date automatically.
- Latest: get new features right away, but this version has not yet been approved as stable. This version is also retrieved each time the server starts.
- Fixed version: Your server stays on a particular 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 how long each build will remain joinable.
Before switching, you can create a security backup. It doesn't use a backup slot and is kept for up to 14 days. Your resources, database, and txAdmin data are preserved when you switch. If the new version doesn't work for you, switch back to the previous one using Revert to ….
Under Game build, choose which game build players download. Cfx currently provides only build 1491 for RedM (the September 2022 update). This is also the Artifact's default, so you usually don't need to change it. A new game build only takes effect after a restart, and players download it once the next time they connect.
Once you select a game build in the card, ZapX adds it as a separate line at the top of your server.cfg. While a build is selected there, ZapX comments out your own sv_enforceGameBuild lines by adding the prefix #[ZAP-Hosting panel]. If you set the card back to the default, ZapX removes its line and restores your lines. If server.cfg sets the value while the card is set to the default, the card will show this, and your value will apply.
To keep your server reachable and make sure it matches 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 chose one. |
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 with your server's current IP address so the server list shows the correct address. If your server is set up with a proxy (sv_forceIndirectListing, sv_listingHostOverride, or sv_proxyIPRanges), the line is left unchanged. |
If you change the ports or game build directly in the file, ZapX will reset them the next time the server starts. ZapX also checks your resources for suspicious code every time it starts. See Resource contains prohibited logic? to learn what a detection means.
Add these settings to server.cfg yourself, each on its own line:
| Setting | Description |
|---|---|
set gamename rdr3 | Specifies that FXServer runs as a RedM server for Red Dead Redemption 2. This line must be in your server.cfg. |
sv_maxclients <Anzahl> | The maximum number of players who can connect at the same time. |
set onesync on | OneSync synchronizes the game world between players. Options are on, legacy, and off. OneSync is required for more than 32 players, and on is recommended. legacy is an outdated compatibility mode. |
sv_pureLevel <0-2> | Pure Mode: how strictly the server checks whether players are using unmodified game files. 1 blocks modified files except audio files, while 2 blocks practically all client-side modifications. Pure Mode is off if this line is not present. |
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 stopped working on November 4, 2026. |
sv_endpointPrivacy true | Hides players' IP addresses in public server information. |
rcon_password "<Passwort>" | Enables RCON. Learn more in RCON. |
Uploading existing server data
If you upload an existing server.cfg or set up your server using Existing Server Data, first check that it contains set gamename rdr3. Your server won't start as a RedM server if this line is missing.
Setting sv_scriptHookAllowed true allows client plugins based on ScriptHook. This opens the door to trainers and cheat plugins for Red Dead Redemption 2. We don't recommend enabling it on public servers.
Manage your server name and description in the Cfx Portal
Since October 21, 2026, set your server's name, description, tags, language, and images in the server list in the Cfx.re Portal, not in server.cfg. To see how your listing currently appears, go to the Server lists card under Cfx.re server list (in-game) in your server overview. If your server doesn't appear, select Why isn't my server in the server list? there for help.
You'll also find the RedM Configurator under Tools. Use the form to put together your settings, or describe what you need in your own words, and see the corresponding server.cfg in the preview.
Use ensure lines in server.cfg to specify which resources your server loads, for example ensure mein-skript. The name must match the resource folder name exactly. See Installing resources for instructions on uploading resources.
Resources for RedM
If a resource specifies the game as rdr3 in its fxmanifest.lua, RedM will only start it if this required line is included exactly as written:
rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
If a resource doesn't start, check this line first.
Because txAdmin controls your server, the Console in ZapX is read-only for RedM. Enter commands in txAdmin's Live Console. Open txAdmin using Open txAdmin at the top of the server header. You can start a resource without restarting the server by entering ensure <ressource> or restart <ressource> there. After uploading new resources, enter refresh to reload the list of available resources. See txAdmin Interface for a tour of all the sections.
RedM manages permissions through ACE, just like FiveM. The command add_ace group.admin command allow lets the group.admin group run all commands, and add_principal <Spieler-Kennung> group.admin adds 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, so be sure to consult their documentation too. Set up announcements for your players as described in Automated server messages, and Discord notifications using the txAdmin Discord Bot.
Create a backup before making major changes to your server.cfg. That way, you can always restore the last working version.
You now know the key settings for your RedM server. See the Dashboard overview to find features in ZapX, and Connect to the server to learn how players can join. If something isn't working as expected, our Common issues guide can help. If you have any other questions, our support team is available every day! 🙂