txAdmin for RedM: how to set up a RedM server step by step (VORP or RSG)

A complete guide to a Red Dead Redemption 2 roleplay server: the Cfx.re license key, the txAdmin PIN, the VORP or RSG recipe, the database, server.cfg and getting players connected. Plus the manual route without txAdmin.

Wiptor Team
23 November 20269 min read

RedM is to Red Dead Redemption 2 what FiveM is to GTA V: a Cfx.re platform that lets you run your own server, usually for roleplay. The good news is that if you have ever set up a FiveM server, almost everything will feel familiar: the same license key, the same txAdmin, the same server.cfg.

In this guide we build a RedM server from scratch with txAdmin and the VORP framework (the most widely used), and explain what changes if you pick RSG. At the end you will also find the manual route without txAdmin, for hosts that start the server straight from server.cfg.

What you need before you start

  • Red Dead Redemption 2 owned on PC (Steam, Rockstar Games Launcher or Epic). Without the original game nobody can join RedM, neither you nor your players.
  • A Cfx.re account, from forum.cfx.re. You use it to generate the server key.
  • A server: a Linux or Windows VPS, or game hosting that supports RedM. For a small roleplay server, 4 GB of RAM is a good start.
  • A MySQL or MariaDB database. VORP and RSG store characters, inventories, money and jobs there.
  • Your Steam account linked to your Cfx.re account, because the VORP recipe requires Steam authentication by default.

Step 1: the RedM license key

Every RedM server needs a license key, just like FiveM, and it is free.

  1. Log in to the Cfx.re portal (portal.cfx.re, formerly Keymaster).
  2. Go to the server keys section and generate a new key.
  3. Give it a name (for example your server name) and choose the server type.
  4. Copy the key. You will paste it into txAdmin or server.cfg.

An account can have a few keys, so you can make one for your main server and one for testing. Never post the key on Discord or in screenshots: with it, anyone can run a server in your name.

Step 2: download and start the server

The RedM server uses the same program as FiveM, called FXServer. The difference comes down to one setting: gamename rdr3.

On a Linux VPS, the steps look like this:

bash
mkdir -p ~/redm/server && cd ~/redm/server
# download the latest recommended FXServer build for Linux
# from the official Cfx.re artifacts page (build_proot_linux)
wget -O fx.tar.xz "LINK-COPIED-FROM-THE-ARTIFACTS-PAGE"
tar xf fx.tar.xz
./run.sh

On Windows, download the Windows archive from the same page, extract it and run FXServer.exe.

When you start FXServer without a server.cfg, it automatically starts txAdmin, the web panel you use to configure everything. The console shows an address (like http://YOUR-IP:40120) and a 4-digit PIN.

Step 3: the txAdmin PIN and the admin account

  1. Open the address shown in the console, on port 40120.
  2. Enter the PIN from the console. If you lost it, restart the server and a new one appears.
  3. Link your Cfx.re account (the Cfx.re login button). This account becomes the main administrator.
  4. Choose a backup password for txAdmin, in case Cfx.re login doesn't work.

The PIN is used once, for the first setup. After that you log in with your account.

A security tip: port 40120 is your admin panel. If you can, allow it in the firewall only from your own IP and use a long password.

Step 4: pick the VORP or RSG recipe

After logging in, the setup wizard starts:

  1. Server name: the one shown in txAdmin.
  2. Deployment Type: choose Popular Recipes, then the RedM recipe, VORP or RSG. If the recipe isn't listed, choose Remote URL Template and paste the recipe file address from the official GitHub repository (VORP_txAdmin for VORP).
  3. Data Location: keep the suggested path unless you have a reason to change it.

VORP or RSG: what's the difference?

VORP CoreRSG Core
Agethe oldest and most used RedM frameworknewer, built in the QBCore style
Available scriptslots, free and paidfewer, but growing
Best forcommunities that want variety and documentationpeople coming from QBCore on FiveM

Important: VORP scripts don't run on RSG and vice versa. Choose the framework before you buy scripts, or you will waste the money. If you can't decide, VORP has the largest community and the most guides.

Step 5: Recipe Deployer, the key and the database

The recipe is installed through the Recipe Deployer, which asks a few things:

  • License Key / Server Registration Key: paste the key from step 1.
  • Database details: host, port (usually 3306), user, password and database name. For VORP, the official guide recommends the name vorpv2.

On a VPS you need MariaDB installed and a user created for the server:

sql
CREATE DATABASE vorpv2 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'redm'@'localhost' IDENTIFIED BY 'a-long-unique-password';
GRANT ALL PRIVILEGES ON vorpv2.* TO 'redm'@'localhost';
FLUSH PRIVILEGES;

Click Run Recipe. txAdmin downloads the framework and base resources, creates the database tables and writes a server.cfg. It takes a few minutes. At the end, click Save & Run Server.

Step 6: server.cfg explained

The recipe writes a working server.cfg, but it is worth knowing what each line does so you can change it. Edit it from txAdmin (CFG Editor) so changes are saved properly. The most important lines:

cfg
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

set gamename rdr3
sv_hostname "Your server name"
sets sv_projectName "Server name"
sets sv_projectDesc "A short description"
sv_maxclients 32

set sv_licenseKey "your-key"
set mysql_connection_string "mysql://redm:password@localhost/vorpv2?charset=utf8mb4"

ensure oxmysql
ensure vorp_core
  • set gamename rdr3 says this is a RedM server, not FiveM. Without it, RedM players can't connect.
  • sv_maxclients is the slot count. The free key has a limit (on FiveM it is 48); for a new server, 32 is a comfortable value.
  • mysql_connection_string connects the server to the database. If you see "access denied" errors in the console, the problem is here.
  • ensure starts a resource. Order matters: oxmysql first, then the framework core, then the rest of your scripts.

The VORP recipe also turns on Steam authentication (sv_enforceSteamAuth). That means players need Steam running and linked to their Cfx.re account. If someone can't join and gets a Steam-related message, this is why.

Step 7: ports and connecting players

The server uses port 30120, both TCP and UDP. On a VPS, open it in the firewall:

bash
sudo ufw allow 30120/tcp
sudo ufw allow 30120/udp

Players connect from RedM by pressing F8 and typing:

text
connect SERVER-IP:30120

After the server has been running for a few minutes, it also shows up in the RedM server list under the name you set in sv_projectName.

The route without txAdmin (manual install)

Some hosts, including our RedM plans, start the server directly from server.cfg, without txAdmin. That's fine: the recipe only automates a few steps you can do yourself.

  1. Key: enter it when ordering or in the panel, and the server receives it at startup.
  2. Database: create it from the panel (databases section) and note the user, password and host.
  3. Resources: download the core and base resources from the framework's official GitHub (VORP or RSG) and upload them to the resources folder.
  4. Tables: import the .sql file that comes with the framework into your database (for VORP it is in the VORP_txAdmin repository, and every resource that needs tables ships its own .sql). Use phpMyAdmin or the panel's import.
  5. server.cfg: add set mysql_connection_string with your database details and an ensure line for each resource, in the order given by the framework's documentation.
  6. Start the server and watch the console. The first errors are almost always a missing resource, a table that wasn't imported or a wrong database password.

It takes a little longer than the recipe, but you know exactly what is on your server, which helps a lot when the first error shows up.

Common problems and how to fix them

"Server license key authentication failed". The key is wrong, was deleted from the portal or is in use on another server at the same time. Generate a new one and replace it.

The server doesn't show in the list. Check port 30120 (TCP and UDP), sv_maxclients (it must not exceed your key's limit) and that sets sv_projectName is filled in. The list updates within a few minutes.

"Unknown database" or "Access denied" errors. The database name, user or password in mysql_connection_string don't match. Test them directly in phpMyAdmin.

Players get stuck loading. Usually a resource failing at startup. Find the first red message after the ensure lines in the console and fix that one first; later errors often come from it.

Forgot your txAdmin password. Stop the server, start it again and use the new PIN from the console to recover access.

RedM servers at Wiptor

If you would rather not install MariaDB and FXServer on a VPS yourself, we give you a RedM server that is already running, with a MySQL database included and DDoS protection that is always on. Add your key when ordering or from the panel, upload VORP or RSG and your resources, and you have the console, files and backups in your my.wiptor.com account, on your phone too.

PlanSlotsRAMNVMe storagePrice
Lite322 GB25 GB€4/month
Starter324 GB30 GB€8/month
Community326 GB35 GB€12/month

Servers run in Romania or Germany and are created automatically right after payment. Use the code WIPTOR30 for 30% off your first month. If you really want txAdmin and full control, our game VPS starts at €8 a month, and the steps in this guide apply exactly the same way.

See RedM servers

Was this helpful?
Wiptor Team

We write these guides from what we do every day on our customers' servers: game servers, VPS and web hosting. If you get stuck on a step, message us on live chat.