To make a RedM server, install the current FXServer artifact, keep its binaries separate from a server-data folder, set set gamename rdr3, enforce the documented RDR2 build, register a Cfx.re server key, and launch the server through txAdmin or a saved configuration. A minimal standalone server can run with the default RedM resources; a roleplay server adds a framework such as VORP or RSG, a database, and many dependent resources.
This guide covers Windows, Linux, and managed hosting, then walks through txAdmin, server.cfg, networking, resource order, database security, first-launch testing, and the fixes for the errors that stop most new servers.
What is a RedM server, and what do you need before installing one?
RedM is the Red Dead Redemption 2 multiplayer platform built on FXServer. The RedM-specific switch is set gamename rdr3; a RedM configuration also commonly includes sv_enforceGameBuild 1491, the RDR2 update build identified by the RedM setup guide. In practical terms, you are running FXServer with RedM game settings, resources, networking, and (if desired) a roleplay framework.
Prepare these items before downloading anything:
- A Windows or Linux machine with permission to run a persistent process and open network ports.
- A Cfx.re account and a server registration key generated in the Cfx.re Portal.
- Terminal or startup access. This is needed even if you later use txAdmin.
- For VORP, RSG, or other database-backed resources, MySQL or MariaDB credentials and an empty database.
- A backup location for
server.cfg, resource configuration, and database dumps.
RedM uses the same downloadable FXServer artifacts as FiveM. Select the current recommended artifact, not a build marked broken. Artifact numbers change, so do not copy an old number from a tutorial and assume it is still recommended.
Which RedM hosting route should you choose?
Choose the route that matches how much server administration you want to perform. The game files and configuration concepts are the same, but responsibility for updates, ports, backups, and recovery changes substantially.
| Route | Best fit | What you manage | Main trade-off |
|---|---|---|---|
| Local Windows | Beginners learning the files or testing privately | FXServer files, Windows firewall, uptime, updates, and backups | Easy desktop workflow, but the server is unavailable when the computer sleeps or shuts down |
| Linux VPS or dedicated host | Administrators who want a continuously running server | Shell commands, system updates, firewall, process supervision, storage, and backups | More control and automation, with a steeper command-line learning curve |
| Managed hosting | Owners who want a provider to supply the machine and panel | Server settings, resources, permissions, and content; the provider handles some infrastructure | Less operating-system work, but you must verify RedM support, port allocation, logs, backups, and file access |
For a first experiment, Windows plus txAdmin is usually the shortest path. For a public 24/7 community, Linux or managed hosting avoids tying uptime to a personal desktop. A managed plan must explicitly support RedM or rdr3; support for FiveM alone does not prove that RedM resources and artifacts are available.
How do you install FXServer on Windows?
Keep the executable files and the server data in separate directories. This makes artifact replacement safer and prevents an update from overwriting your configuration and resources.
- Create a binary directory such as
C:FXServerserver. - Download the current recommended Windows FXServer artifact and extract it into that binary directory. Avoid an artifact identified as broken.
- Clone or download
cfx-server-datainto a separate directory such asC:FXServerserver-data. - Inside
server-data, create a text file namedserver.cfg. Make sure Windows has not silently saved it asserver.cfg.txt. - Add your registration key as
sv_licenseKey "YOUR_CFX_KEY". Replace the example value with the key from your Cfx.re account. - Open Command Prompt or PowerShell, change to the data directory, and start FXServer:
C:FXServerserverFXServer.exe +exec server.cfg
Starting from server-data matters because relative resource paths are resolved from the active data directory. If the console reports that no resources were found, check the launch directory before changing resource names.
How do you install FXServer on Linux?
Linux uses the Linux artifact and the included run.sh launcher. The exact package commands depend on your distribution, but Git and the xz utilities are required by the standard installation flow.
- Install Git and
xz(calledxz-utilson some distributions). - Create a binary directory such as
~/FXServer/server. - Download the current recommended Linux artifact and extract it into that directory.
- Clone or download
cfx-server-datainto~/FXServer/server-data. - Create
server.cfgin the data directory and addsv_licenseKey "YOUR_CFX_KEY". - Launch from the data directory:
cd ~/FXServer/server-data && bash ~/FXServer/server/run.sh +exec server.cfg
For a public server, arrange a service manager or equivalent process supervision so FXServer restarts after a crash or host reboot. Also open the game ports in both the host firewall and any provider-level firewall; opening only one of those layers still leaves players unable to connect.
How do you start a RedM server with txAdmin?
txAdmin is included with FXServer; it is not a separate resource to download. Use its first-run bootstrap to create the panel account and deploy a recipe, then use the panel to start and monitor the server.
- For the first bootstrap, start
FXServer.exeon Windows or./run.shon Linux without+exec server.cfg. - Read the console output. It prints a local panel URL and a setup PIN.
- Open that URL in a browser, enter the PIN, and link the panel to your Cfx.re account.
- Choose a deployment recipe. Select
citizenfx default-redmfor a minimal standalone server. - Choose VORP or RSG only when you intend to build a roleplay server and are ready to configure its resources and database.
- Deploy into an empty or disposable resource directory for your first experiment. Do not install a new recipe over an existing production resource folder.
The default txAdmin panel port is TCP 40120. A browser on another computer cannot use its own localhost to reach the host’s panel; use the host address and permit the panel port through the appropriate firewall path. Restrict panel exposure where possible and never share the setup PIN.
After deployment, txAdmin can start, stop, restart, and display console output for the server. You can still edit server.cfg and resource files directly; txAdmin does not remove the need to understand the underlying configuration.
What should go in a basic RedM server.cfg?
A minimal configuration identifies RedM, selects the documented game build, binds the game endpoints, names the server, supplies the key, and starts only resources that actually exist in your data folder.
set gamename rdr3
sv_enforceGameBuild 1491
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
sv_hostname "My RedM Server"
sv_maxclients 32
sv_licenseKey "YOUR_CFX_KEY"
# Add only resources that exist in your resources folder.
ensure mapmanager
ensure chat
ensure spawnmanager
ensure redm-map-one
ensure hardcap
The RedM guide documents build 1491 as the September 2022 RDR2 update build. Treat it as the value in that guide, not as a promise that every future resource or artifact requires it. Check current RedM documentation before changing the enforced build.
30120 is a typical game TCP/UDP endpoint. A provider may assign different ports, in which case use those allocations in both endpoint_add_tcp and endpoint_add_udp. The example sv_maxclients 32 is a conservative starting value, not a universal capacity guarantee; actual capacity depends on scripts, assets, CPU, memory, and network conditions.
After the Cfx Portal rollout on 21 October 2026, public listing name, description, tags, language, and images are managed in the Portal. Keep startup settings, networking, resource order, and secrets in the configuration file or panel locations intended for them rather than expecting listing fields to control server startup.
How do you add RedM resources in the correct order?
Every resource must support RedM. A resource ported only for FiveM will not automatically work on rdr3. Its manifest should declare game 'rdr3' and include the rdr3_warning line required by the resource’s RedM setup.
Install and start resources in dependency order:
- Database connector: Add a connector such as
oxmysqlwhen the framework requires one. - Framework core: Start VORP, RSG, or another chosen framework and its utility modules.
- Shared libraries: Start common menus, callbacks, targeting libraries, and other shared dependencies.
- Gameplay systems: Add jobs, inventory, phone, economy, crafting, and similar scripts.
- Maps and MLOs: Start map additions after the systems they depend on.
Use one line per resource, for example ensure resource_name. The order of ensure lines is the startup order. A dependent script launched before its framework often produces a nil-value error even when every file is present. Move the dependency above it, then restart.
When adding, renaming, or removing a resource, run refresh in the server console and then restart resource_name. Editing an existing file normally does not require refresh; restart the affected resource after saving so the running process loads the change.
Should you use the default recipe, VORP, or RSG?
Use the default RedM recipe for a small standalone server or for learning the platform. Choose VORP or RSG when your goal is a roleplay server with jobs, inventory, persistence, and a larger ecosystem of scripts.
| Choice | What it provides | What you must prepare | When it makes sense |
|---|---|---|---|
citizenfx default-redm |
A minimal standalone resource set | FXServer, a key, networking, and compatible resources you add yourself | Testing, private play, or a custom lightweight server |
| VORP | A roleplay framework and its related resource ecosystem | Framework configuration, dependency order, database connection, and compatible scripts | Communities planning persistent roleplay systems |
| RSG | Another roleplay framework with its own resource and configuration requirements | Framework modules, database settings, dependency order, and compatible scripts | Communities choosing the RSG ecosystem for their design |
Do not mix framework resources casually. A script written for one framework may require adapters or a different API, and a successful server boot does not prove that jobs, inventory, or persistence are compatible. Start with the framework’s documented core, confirm it boots, and add gameplay systems one at a time.
How do you configure MySQL or MariaDB safely?
A standalone default server can run without a roleplay database. VORP, RSG, and many persistent scripts commonly require MySQL or MariaDB, so create the database and verify the connector before installing dependent gameplay resources.
A connection string can look like this:
set mysql_connection_string "mysql://user:password@localhost/dbname?charset=utf8mb4"
Replace each component with the credentials supplied for your database. Put the setting in the protected configuration location used by your deployment, and ensure the connector starts before the framework.
- Use a database account limited to the server’s database rather than a broad administrative account.
- Back up the database before framework updates or large resource changes.
- Keep the Cfx license key and database password out of screenshots, tickets, forums, and Discord posts.
- If support needs your configuration, redact both secrets and any private host information.
A database connection error near the top of the console should be fixed before investigating later script failures. A framework that cannot load its tables may produce misleading errors in every job or inventory resource that follows.
How do you open RedM ports and let players connect?
Players normally reach the game through the TCP and UDP endpoints configured in server.cfg. The common example is port 30120 for both protocols, but provider allocations take precedence.
- Confirm the assigned public address and game port with your host or network administrator.
- Set matching
endpoint_add_tcpandendpoint_add_udpvalues. - Allow those protocols and ports in the operating-system firewall.
- If the server is behind a router, forward both protocols to the machine running FXServer.
- Allow the same ports in any VPS or provider firewall.
- Restart FXServer and test from a RedM client outside the local network.
A panel port such as TCP 40120 is separate from the player game port. Do not substitute the txAdmin port in the game endpoint settings, and do not expose the panel publicly without considering access controls.
How do you test the first RedM launch?
Test a minimal server before installing a large framework stack. This isolates networking and artifact problems from resource and database problems.
- Save
server.cfgand start or restart the server from txAdmin, or launch it with+exec server.cfg. - Read the console from the first line downward. Fix the first red error before later messages; subsequent failures are often consequences.
- Confirm that
mapmanager,chat,spawnmanager,redm-map-one, andhardcapstart successfully when they are present. - Connect from a RedM client using the host address and configured game port.
- Only after a clean connection, add the database connector, framework, shared libraries, and gameplay resources in stages.
- After each resource change, use
refreshfor additions, removals, or renames, thenrestart resource_name.
A RedM status checker can confirm whether the server appears in the same Cfx.re listing used by the platform. Listing visibility is not a substitute for a direct connection test: a server can be listed while a firewall or incorrect endpoint still blocks players.
What are the most common RedM server errors?
No resources found or resources fail immediately
Check that FXServer was started from the intended server-data directory and that resource folders are in the expected location. Verify each ensure name matches the folder name exactly and remove lines for resources you have not installed.
Players see connection refused or a timeout
Check both TCP and UDP game endpoints, the provider’s assigned port, operating-system firewall rules, router forwarding, and any provider firewall. Confirm that the client is using the public address rather than a private LAN address.
The console says no license key was specified
Ensure sv_licenseKey exists in the active server.cfg, contains the current key, and is not being overridden by a different file or txAdmin deployment. If you launch with +exec server.cfg, verify that the path and working directory point to the file you edited.
A framework produces nil-value errors
Move the database connector and framework core above dependent scripts in server.cfg. Confirm that the script is written for your selected framework and that all of its named dependencies are installed and started.
A resource refuses to start on RedM
Inspect its manifest for game 'rdr3' and the rdr3_warning declaration. Check for missing dependencies and FiveM-only code; a resource that targets a different game may need a RedM port rather than a configuration tweak.
txAdmin will not load
Use the URL and PIN printed by the FXServer process. A remote browser must use the host’s reachable address, not its own localhost. Check the panel firewall path and verify that another service is not already occupying TCP 40120.
How do you update and maintain a RedM server?
Separate binaries from data so an artifact update does not erase your configuration. Before updating, stop the server, copy server.cfg and resource configuration, and take a database backup if persistence is enabled.
- Read the current artifact guidance and select the recommended, non-broken build.
- Stop FXServer through txAdmin or the process manager.
- Back up the data directory and database.
- Replace or update the binary directory while leaving
server-dataintact. - Start the server and inspect the first errors before allowing players back in.
- Test framework login, character loading, inventory, jobs, and any critical scripts after the update.
Framework compatibility changes independently of FXServer artifacts. Recheck the framework’s supported game build and dependencies before upgrading a production server, and test changes in a disposable copy first.
What is the safest path from a test server to a public roleplay server?
Build in layers rather than deploying every script at once. A staged approach gives each failure a small search area.
- Boot the default RedM recipe and connect with one client.
- Confirm the game endpoints and txAdmin access from outside the host.
- Install the chosen database connector and verify a successful connection.
- Install the selected framework and its required utility modules.
- Load one shared library, then one gameplay system, testing after each addition.
- Add maps and MLOs last, checking performance and spawn behavior.
- Set permissions, backups, restart procedures, and a written recovery plan before opening the server publicly.
This order also makes it easier to roll back: remove the most recently added resource, restore the previous configuration, and test the known-good baseline instead of guessing across dozens of simultaneous changes.
Frequently Asked Questions
Can I run a RedM server without a roleplay framework?
Yes. The citizenfx default-redm recipe is intended for a minimal standalone server, and it can run without MySQL or MariaDB. You add compatible gameplay resources yourself rather than receiving the persistence and job systems supplied by a framework.
Why does a FiveM script fail when I copy it to RedM?
RedM resources target the rdr3 game and may use different natives, assets, and APIs. A manifest declaring only FiveM support is evidence that the resource needs a RedM port or an explicitly documented compatibility layer.
What should I back up before changing a RedM server?
Back up the active server.cfg, every resource configuration file, and the roleplay database when one is used. Keep a copy outside the live server directory so a bad artifact update or accidental deployment cannot destroy the only copy.
Can players connect while txAdmin is on a different port?
Yes. txAdmin’s panel port, commonly TCP 40120, is separate from the game endpoints, commonly TCP and UDP 30120. Players need the configured game address and port; administrators use the panel address.