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

  1. Sign in at portal.cfx.re, create a new key for your server and copy it.
  2. In the game panel open the Startup tab and paste the key into CFX LICENSE. It saves by itself.
  3. 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

  1. 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.
  2. Start RedM, press F8 and type connect node1.imperialhost.cc:30012 with your port.
  3. With a valid key the server also shows up in the RedM server list.

3. Name and player slots

  1. 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.
  2. The Startup tab also has SERVER HOSTNAME. On every start the panel writes its value into server.cfg as the sv_hostname line, so don't change that line in the file.
  3. The number of slots is in MAX PLAYERS. It is set to 32 and can't be changed.

4. Make yourself an admin

  1. 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.
  2. On the Files tab open server.cfg, find the line add_principal identifier.fivem:1 group.admin and replace the number 1 with your ID. Add another admin with the same line and their ID.
  3. The line add_ace group.admin command allow gives the group.admin group every command, and add_ace group.admin command.quit deny takes away only quit.
  4. Save the file (Save Content) and restart the server.

5. Resources and a framework

  1. A resource is a folder with a script. Upload it to the resources folder: zipped with Upload and Unarchive, a bigger one over SFTP: Connect to your server with SFTP (FileZilla, WinSCP).
  2. In server.cfg add one more line below the other ensure lines with the folder's name, for example ensure my-script, and restart the server.
  3. The VORP and RSG frameworks keep characters and inventories in MySQL. On the Databases tab click New Database, type for example redm in Database Name and click Create Database.
  4. VORP and RSG both reach the database through the oxmysql resource, so upload it like the other resources. The ensure oxmysql line must be above the framework's line.
  5. Put the database details in server.cfg above all ensure lines, for example set 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.

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.