Midnight Developmentdocs
Discord Roles

Discord Roles

Sets a player's in-game group based on their Discord role

md_discord sets a player's in-game group based on their Discord role. It works standalone using FiveM's built-in ACE permission system, or hooks directly into ESX, QBCore, or QBox if one of those is detected on the server.

How it works

When a player connects (or their character loads, depending on framework), the resource looks up their linked Discord account, asks the Discord API which roles they have in your server, and matches those roles against Config.RoleGroups to decide their in-game group. Online players are also periodically re-checked so role changes on Discord apply without needing a reconnect.

Source and issue tracker: github.com/mdnightdevv/md_discord

On this page