FiveM
Connect your FiveM server to Discord without copying any key. Account linking, role-based entry and a priority queue.
The FiveM module connects your city to Discord: the player links their account on the first join, you choose which roles can get in and who goes to the front when the server is full.
Install
- In the dashboard, open FiveM > Settings and click Add server.
- Click Download the folder and put the
mri-botcreatorfolder in the server's resources. - Add
ensure mri-botcreatortoserver.cfgand start the server.
Done. On the first start the server connects by itself and shows up in the dashboard as Connected. There's no key to copy and no file to edit.
Each download is good for one install. The folder copied to another machine won't connect.
More than one server
You can have as many servers as you want on the same Discord, for example the city and a test server. Click Add server, give it a name and download its folder. Each server has its own entry, queue and role settings.
Moving to another machine
Download the folder again and install it on the new machine. As soon as it starts, the old machine loses the connection on its own.
To cut the connection right away, without installing it anywhere else, use Disconnect on the server's card. To come back, download the folder and install it again.
What each status means
| In the dashboard | What to do |
|---|---|
| Not installed | download the folder and install it |
| Waiting | the folder was downloaded, the server still needs to start with it |
| Connected | all good |
| Offline | the server is off or has no internet. If it's on, check the console |
When it doesn't connect
Look at the server console right after the start. The messages begin with [MRI-BotCreator]
and are always in Portuguese.
- "nao consegui conectar ao painel agora" ("couldn't connect to the dashboard right now"): the server couldn't reach the internet or the dashboard was down. It tries again on the next start.
- "nao consegui conectar:" ("couldn't connect:") followed by the reason (expired download or already installed somewhere else): download the folder again and install it over the old one.
- "este servidor ainda nao esta conectado" ("this server isn't connected yet"): the folder didn't come from the dashboard. Download it there.
Older installs, with the key written in config.lua, keep working as they are.
Store inside the game
With the store live, the player types /loja on the server and your store opens on the game
screen, just like on the website: cart, coupon, product options, variations and plans.
- The player comes in already identified by the server, with no sign in. They only type the email for the receipt.
- At payment a QR code shows up: they point the phone camera at it and pay there. With Mercado Pago or Stripe, the screen shows when the payment is approved. On Tebex, they sign in with their FiveM account on the phone and the delivery comes through the server.
- Links that leave the store (Discord, social media) also become QR codes.
- Close it with Esc or the ×.
- To tell everyone about each purchase, turn on Announce purchases on the server in Store > Integrations.
If the store does not open, the game shows the simple product list instead. Check that the store is on in Store > Settings and that the player has Discord open on the computer.
Delivering purchases in game
- A purchase waits up to 30 days for the player to join the server. They get it after choosing their character, never on the character screen.
- The player types
/vipto see what they have with an end date (VIP, subscription, a 30 day car) and when it ends or renews. - For a product with an end date to take back what it gave, add the take-back action with the On expiry trigger. For a car, use Remove vehicle with the same model as Give vehicle.
- It works on QBCore, Qbox, ESX, vRP and Creative. On vRP and Creative, VIP and job are groups: import the vRP and Creative pack in FiveM > Actions and use Give group on purchase and Remove group on expiry.
- Players without Discord can buy with their character ID (passport or citizen ID) on products that only deliver in FiveM. The store shows No Discord? Buy with your character ID at checkout, and the purchase arrives when they join with that character.