Linking a FiveM server
Show your FiveM server's players and state on Discord, in a command or the bot's activity.
If your community has a FiveM server (GTA V online), the bot can follow its state: the number of connected players, the places, the name, the map. This information becomes placeholders, to show wherever you want.
In short
+fivemopens the panel; give your server's address.- Use the placeholders in a custom command or the bot's activity: for example
+watch {FivemMembersCount} players in town.
Linking the server
Type +fivem (kept for the bot's owners) and give your server's address: its cfx.re/join/… link, or its ip:port. The panel then shows what the bot sees: the number of players, the places, the name, the map and the server's state. This information is updated every 2 minutes.
A bot only follows one FiveM server.
Showing the information
The panel lists your FiveM server's placeholders:
{FivemMembersCount}: the number of connected players;{FivemMaxMembers}: the number of places;{FivemHostName}: the server's name;{FivemGameType}: the game type;{FivemMapName}: the map;{FivemStatus}: the server's state (online or not).
Paste them:
- in a custom command: for example a
!servercommand that answers with the number of players and the address; - in the bot's activity: the bot then shows the number of players under its name at all times.
If it doesn't work
- The panel shows nothing: check the address, and that the FiveM server is online and publicly visible.
- The numbers don't move: they are updated every 2 minutes.
Every command
Each command of this guide, with its arguments, its default level and examples: FiveM.