# RedM

How to use FiveDash on a RedM server: picking the game, installing the resource, what the store delivers on VORP and RSG and what changes from FiveM.

Source: https://fivedash.fivex.gg/docs/en/getting-started/redm

FiveDash runs on FiveM (GTA V) and RedM (Red Dead Redemption 2) servers. The dashboard, the Discord bot, the store, the logs, the rules and the CDN are the same; what changes is what the game hands over. This page is for people with a RedM server.

## Before you start

* A RedM server, with `set gamename rdr3` in `server.cfg`.
* `oxmysql` started before `fivedash`.
* For the store to deliver more than commands: **VORP** (`vorp_core`) or **RSG** (`rsg-core`).

## Get started

### Pick RedM

In the onboarding's **Server** step, or in **Add server**, choose **RedM** under **Game**. For a server you already have, change it in **Manage servers**.

### Install the resource

It's the same `fivedash` resource as FiveM's, and it finds the game on its own. Follow [Install the resource](https://fivedash.fivex.gg/docs/en/getting-started/install-resource) and keep this order in `server.cfg`:

```bash
set gamename rdr3
ensure oxmysql
ensure vorp_core
ensure vorp_inventory
ensure fivedash
```

On RSG, replace the two in the middle with `ensure rsg-core` and `ensure rsg-inventory`.

### Check the connection

In **Server → Overview**, the **Game connection** card shows **Connected**, with **VORP** or **RSG** under **Framework**. If the server runs the other game, a yellow warning says which one.

### Build the store

With the server on **RedM**, the product editor shows **Horse**, **Wagon**, **Weapon** and **Gold**. See [Products](https://fivedash.fivex.gg/docs/en/store/products).

> Delivering horses, wagons, weapons and gold needs resource **0.10.0** or newer. On an older one, the order shows as **Failed** with the reason; restart the server so it updates and click **Resend to the city**.

## What the store delivers

| Type            | VORP                                                           | RSG                           | Must be on the server?       |
| --------------- | -------------------------------------------------------------- | ----------------------------- | ---------------------------- |
| **VIP or role** | Job (`job.sheriff`), character group (`char.vip`) or ACE group | Job, gang or ACE group        | No\*                         |
| **Horse**       | `vorp_stables` or `bcc-stables`                                | `rsg-stables` or `rsg-horses` | No                           |
| **Wagon**       | `vorp_stables` or `bcc-wagons`                                 | `rsg-wagons`                  | No                           |
| **Weapon**      | `vorp_inventory`                                               | `rsg-inventory`               | Yes                          |
| **Money**       | In hand                                                        | Bank or in hand               | VORP: yes. RSG: only in hand |
| **Gold**        | In the wallet                                                  | In the wallet                 | Yes                          |
| **Item**        | `vorp_inventory`                                               | `rsg-inventory`               | Yes                          |
| **Command**     | Server console                                                 | Server console                | No                           |

\* On VORP, a job or character group waits if the player is on the server with another character.

What needs the player waits for them to join, as on FiveM. A horse or wagon bought while the player is in shows up in the stable after they join again, when the stable script keeps its list in memory.

The details of each are in [Frameworks](https://fivedash.fivex.gg/docs/en/developers/frameworks). **RedEM:RP** is recognized by name, but the store only delivers **Command** on it.

## Who gets it

| Framework | ID the player types                                      |
| --------- | -------------------------------------------------------- |
| VORP      | **Char ID** (`charidentifier` in the `characters` table) |
| RSG       | **Citizen ID**                                           |

Through the **Discord account**, the purchase goes to the newest character of the Steam (VORP) or license (RSG) that has joined with that Discord.

## Whitelist

The Discord unlock works on the framework's own whitelist:

* **VORP:** the `whitelist` table, with `Whitelist = true` in `vorp_core/config/config.lua`.
* **RSG:** `RSGConfig.Server.Whitelist` and `WhitelistPermission` in `rsg-core/shared/config.lua`. Change the default `admin` permission to `whitelisted`: with `admin` every unlocked player would become staff, so FiveDash doesn't unlock.

On both, the player has to try to join once, with Discord open, before the unlock.

## In game

Notices, messages, bans, deaths in the logs and the staff commands (`/fd`) work on RedM. What changes:

| Command           | On RedM                                                    |
| ----------------- | ---------------------------------------------------------- |
| `/fd car <model>` | Creates a horse or a wagon, with you on it                 |
| `/fd dv`          | Deletes the horse or wagon you're on, or the nearest wagon |
| `/fd fix`         | Repairs the wagon, or heals the horse                      |
| `/fd noclip`      | You leave the horse or wagon                               |
| `/fd boost`       | Doesn't exist (FiveM only)                                 |

In Discord boost rewards, a model starting with `A_C_Horse` is given as a horse, and any other as a wagon.

## FAQ

**Do I need another plan for RedM?**
No. The plan is the same, and a RedM server counts as one of the organization's servers.

**Can I have FiveM and RedM in the same organization?**
Yes. Each server has its own game, bot, store, logs and rules.

**I picked the wrong game. Now what?**
Change it in **Manage servers**. Products already there don't change on their own: edit their deliveries.

## Next steps

[Install the resource](https://fivedash.fivex.gg/docs/en/getting-started/install-resource)Connect the server to FiveDash.
[Frameworks](https://fivedash.fivex.gg/docs/en/developers/frameworks)VORP and RSG in detail.
[In-game delivery](https://fivedash.fivex.gg/docs/en/store/in-game-delivery)A purchase's way to the character.
[Whitelist](https://fivedash.fivex.gg/docs/en/discord/whitelist)Unlocking through Discord.
