Multicharacter
Discord
config/discord.lua and discord-secrets.lua - role slots, staff list, and player identity from Discord.
Config.Discord = { checkRoles = true, showIdentity = true,}| Option | Description |
|---|---|
checkRoles | Reads player roles from your Discord server. Needed for Config.SlotsByDiscordRole. |
showIdentity | Shows the Discord name and avatar on character select. |
Discord is optional. Without it, everything else works normally.
Bot token
Config.Discord.botToken = 'YOUR_TOKEN'Config.Discord.guildId = '123456789012345678'Bot setup
Create an application
Open discord.com/developers/applications (opens in a new tab), click New Application, and give it a name.
The player must have Discord linked to FiveM, with Discord running while playing. Otherwise their roles cannot be read.