ImperialHost.cc · Guides · Roleplay and shooters
RedM server: joining and setup
RedM is multiplayer for Red Dead Redemption 2 by Cfx.re. You add a license key, join from the game, set the name, make yourself an admin and upload resources.
Before you start
- A RedM server with us.
- A Cfx.re account (it is free).
- Players need the PC version of Red Dead Redemption 2 and the RedM client.
1. License key
- Sign in at portal.cfx.re, create a new key for your server and copy it.
- In the game panel open the Startup tab and paste the key into CFX LICENSE. It saves by itself.
- On the Console tab click Restart (the circular arrow at the top near the server's name). Without a key the server does not start.
2. Join from the game
- The server's address is in the client area on the service's page under IP address, for example
node1.imperialhost.cc:30012. In the game panel it is at the top under the server's name, and the Copy button copies it. - Start RedM, press F8 and type
connect node1.imperialhost.cc:30012with your port. - With a valid key the server also shows up in the RedM server list.
3. Name and player slots
- You set the name and description players see in the server list at portal.cfx.re on your server. Cfx.re says they should no longer be set in
server.cfg. - The Startup tab also has SERVER HOSTNAME. On every start the panel writes its value into
server.cfgas thesv_hostnameline, so don't change that line in the file. - The number of slots is in MAX PLAYERS. It is set to 32 and can't be changed.
4. Make yourself an admin
- On the forum.cfx.re forum open your profile, click Expand on the Summary tab and copy the number after
fivem:. That is your Cfx.re ID. In the game you must be signed in with the same Cfx.re account. - On the Files tab open
server.cfg, find the lineadd_principal identifier.fivem:1 group.adminand replace the number1with your ID. Add another admin with the same line and their ID. - The line
add_ace group.admin command allowgives thegroup.admingroup every command, andadd_ace group.admin command.quit denytakes away onlyquit. - Save the file (Save Content) and restart the server.
Frameworks such as VORP or RSG often have their own admin settings. You find them in their documentation.
5. Resources and a framework
- A resource is a folder with a script. Upload it to the
resourcesfolder: zipped with Upload and Unarchive, a bigger one over SFTP: Connect to your server with SFTP (FileZilla, WinSCP). - In
server.cfgadd one more line below the otherensurelines with the folder's name, for exampleensure my-script, and restart the server. - The VORP and RSG frameworks keep characters and inventories in MySQL. On the Databases tab click New Database, type for example
redmin Database Name and click Create Database. - VORP and RSG both reach the database through the oxmysql resource, so upload it like the other resources. The
ensure oxmysqlline must be above the framework's line. - Put the database details in
server.cfgabove allensurelines, for exampleset mysql_connection_string "mysql://USER:[email protected]:3306/s123_redm". After the@goes what the Endpoint field holds, the user and password are Username and Password behind the eye icon, and the full database name is at the end.
Download resources from authors you trust. A script on the server can reach everything, the database too.
Troubleshooting
The server won't start because of the license key
Check that CFX LICENSE holds the whole key without spaces and that the key is valid on portal.cfx.re. Then restart the server.
The server has a different name in the server list
You set the name and description for the server list at portal.cfx.re on your server, not in server.cfg. On every start the panel overwrites the sv_hostname line in server.cfg with the value of SERVER HOSTNAME.
A resource does not start
Find the line with its name in the console log after the start. The name in ensure must match the folder's name exactly, and the script must be written for RedM. Scripts for FiveM mostly don't work.
The framework can't reach the database
In set mysql_connection_string check the user, the password, the address from Endpoint and the full database name (for example s123_redm), and that ensure oxmysql is above the framework. Only the server can reach the database, not your computer. You can look at its data in phpMyAdmin: Manage your database in phpMyAdmin.
Still stuck?
Message us on Discord. The AI assistant Aurel answers first, and you can call an admin. Or open a ticket in the client area.