Complete guide to setting up your RedM server on Legion Hosting. RedM is a multiplayer modification framework for Red Dead Redemption 2, built by Cfx.re (the same team behind FiveM). This guide covers license key registration, server configuration, resource management, and connecting players. If you run into issues, see our RedM Troubleshooting guide.
What is RedM?
RedM is a community-driven multiplayer framework for Red Dead Redemption 2, developed and maintained by the Cfx.re Collective — the same organization behind FiveM (the GTA V multiplayer framework). RedM provides:
- A dedicated server platform for hosting custom RDR2 multiplayer experiences
- A resource/scripting system using Lua, C#, and JavaScript
- Support for custom game modes, roleplay frameworks, and community mods
- A client launcher that connects players to custom servers
- Native function access for extensive game modification
Getting a Cfx.re License Key
Every RedM server requires a valid Cfx.re license key. This key is free and tied to your Cfx.re account.
- Go to the Cfx.re Keymaster at
https://keymaster.fivem.net/. - Log in with your Cfx.re account (or create one if you do not have one).
- Click Register a new server (or "New Server" depending on the current interface).
- Fill in the form:
- Label: A name for your server (for your reference only).
- Server IP: Enter your server's IP address from GPanel. You can find this under your server's overview page.
- Server Type: Select the appropriate type (typically "Other/VPS" for hosted servers).
- Click Generate. Your license key will be displayed. Copy it and save it securely.
First Start and GPanel Startup Variables
After purchasing your RedM server from Legion Hosting, log in to GPanel and navigate to your server.
Setting Startup Variables
Go to the Startup tab in GPanel. You will see several configurable variables:
| Variable | Description | Example |
|---|---|---|
CFX_LICENSE |
Your Cfx.re license key from Keymaster. Required. | cfxk_xxxxxxxxxxxxxxxxxxxx_xxxxx |
SERVER_HOSTNAME |
Display name for your server in the server list. | My new FXServer! |
MAX_PLAYERS |
Maximum number of connected players (1–32). | 32 |
CFX_VERSION |
The CFX server build version to install. Use latest, recommended, or a specific build number. |
latest |
STEAM_WEBAPIKEY |
Steam Web API key for Steam identity. Get one at steamcommunity.com/dev/apikey. Set to none to disable. |
none |
First Start
- Enter your Cfx.re license key in the
CFX_LICENSEfield. - Set your desired server name and max player count.
- Go to the Console tab and click Start.
- The server will download the RedM server artifacts on first boot. This may take a few minutes.
- Once you see messages indicating the server is listening (e.g.,
Started resource manager), your server is online.
server.cfg Configuration
The server.cfg file is the primary configuration file for your RedM server. Access it through GPanel's File Manager or via SFTP. Below is a comprehensive example configuration:
# ========================================
# RedM Server Configuration
# ========================================
# Network Endpoints
# These define what IP and port the server listens on.
# 0.0.0.0 means listen on all available interfaces.
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
# Server Identity
sv_hostname "My RedM Roleplay Server"
sv_maxclients 32
sv_licenseKey "cfxk_xxxxxxxxxxxxxxxxxxxx_xxxxx"
# Server Password (leave empty for no password)
# sv_password "MyServerPassword"
# Server Description and Tags (shown in server browser)
sets sv_projectName "My RedM RP"
sets sv_projectDesc "A Wild West roleplay experience"
sets tags "roleplay, rp, economy, custom"
# Locale
sets locale "en-US"
# Steam Web API Key (optional, for Steam identity)
# Get one from https://steamcommunity.com/dev/apikey
# set steam_webApiKey "YOUR_STEAM_API_KEY"
# OneSync (networked entity sync)
# "on" = standard OneSync, "legacy" = legacy mode
set onesync on
# RCON Password (for remote console access)
rcon_password "YourRconPassword123"
# Resource Directories
# Ensure resources are loaded from these directories
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure rconlog
# ========================================
# Add your custom resources below
# ========================================
# ensure my_custom_resource
# ensure vorp_core
# ensure oxmysql
Key Configuration Options Explained
| Directive | Description |
|---|---|
endpoint_add_tcp |
TCP endpoint for client connections. Must match the port assigned by GPanel. |
endpoint_add_udp |
UDP endpoint for game data. Must be the same port as TCP. |
sv_hostname |
The server name displayed in the RedM server browser and client direct connect. |
sv_maxclients |
Maximum player slots. Must not exceed what your hosting plan supports. |
sv_licenseKey |
Your Cfx.re license key. Can also be set via GPanel startup variable. |
sets |
Sets a server convar that is visible in the server browser (replicated to clients). |
set |
Sets a server convar that is only visible server-side. |
set onesync |
Enables OneSync for better entity synchronization. Recommended to leave on. |
ensure |
Loads and starts a resource. The resource must exist in a resources/ subdirectory. |
endpoint_add_tcp and endpoint_add_udp ports must match the port assigned to your server in GPanel. Your server will be assigned a random port unless you have a private IP. If GPanel shows your server on port 30120, your endpoints should be "0.0.0.0:30120". Using a mismatched port will prevent the server from starting correctly.
Resource Management
Resources are the building blocks of a RedM server. They contain scripts, assets, and configurations that add functionality to your server.
Resource Structure
Each resource is a folder inside the resources/ directory containing at minimum a fxmanifest.lua (or legacy __resource.lua) file:
resources/
[system]/
chat/
fxmanifest.lua
cl_chat.lua
sv_chat.lua
spawnmanager/
fxmanifest.lua
...
[custom]/
my_resource/
fxmanifest.lua
client.lua
server.lua
config.lua
Loading Resources
Resources are loaded using the ensure command in server.cfg:
# Load a specific resource
ensure my_resource
# You can also use 'start' (functionally equivalent to ensure)
start another_resource
The difference between ensure and start: ensure will start the resource if it is stopped, or restart it if it is already running. start will only start it if it is not already running.
Installing New Resources
- Download the resource from its source (GitHub, community forums, etc.).
- Upload the resource folder to your server's
resources/directory via SFTP (see SFTP Upload Guide) or GPanel file manager. - Add an
ensure resource_nameline to yourserver.cfg. - Restart the server for the resource to load.
Popular RedM Frameworks and Resources
| Framework/Resource | Description |
|---|---|
| VORP Core | Popular roleplay framework for RedM. Provides character creation, inventory, economy, and more. The RedM equivalent of ESX/QBCore in FiveM. |
| RSG Core (RedEM:RP) | Another full RP framework with character management, jobs, and economy systems. |
| oxmysql | MySQL library for Cfx.re servers. Required by most frameworks for database operations. |
| ox_lib | Utility library providing shared functions, UI components, and helper modules. |
| vorp_inventory | Inventory system for VORP-based servers. |
How to Connect
Players need the RedM client to connect to your server. Here is how to get started:
Installing RedM
- Players must own a legitimate copy of Red Dead Redemption 2 on Steam, Epic Games Store, or Rockstar Games Launcher.
- Download the RedM client from redm.net.
- Install RedM. It will automatically detect the RDR2 installation.
- Launch RedM. On first launch, it will update and cache game files.
Connecting via Server Browser
- Launch RedM.
- Click Play from the main menu to open the server browser.
- Search for your server by name (the
sv_hostnamevalue from your config). - Select your server and click Connect. Enter the password if one is set.
Direct Connect
- Launch RedM.
- Press F8 to open the client console.
- Type the following command with your server's IP and port:
connect YOUR_SERVER_IP:PORT
For example:
connect 192.168.1.100:30120
Find your server IP and port in GPanel under your server's overview page, or see How to Find Your Server IP and Port.
FiveM Shared Concepts
Since RedM and FiveM are both built on the Cfx.re platform, many concepts transfer directly:
- server.cfg syntax is identical between FiveM and RedM.
- Resource manifests (
fxmanifest.lua) use the same format and fields. - Server-side scripting (Lua, C#, JavaScript) works the same way.
- oxmysql and other shared libraries work on both platforms.
- txAdmin management panel works with both FiveM and RedM servers.
- OneSync entity synchronization is available on both platforms.
The primary differences are client-side natives (game-specific functions), resource compatibility (FiveM resources need porting for RDR2), and the available game world/entities.
Related Articles
- RedM Troubleshooting — Solutions for common license key, connection, resource, and performance issues.
- How to Find Your Server IP and Port
- How to Upload Files via SFTP
- Getting Started with Your New Server
Need Help?
If you need assistance setting up your RedM server, obtaining a license key, or configuring resources, open a support ticket and our team will help you get up and running.