SleepyCode
Home
AboutBlogSubscriptionDocs
Cart0
SleepyCode
Cart0
  • πŸ’£Documentation

Scripts

  • Multicharacter
    • Features
    • Installation
    • Framework Setup
    • Core Settings
    • Characters and Slots
    • Identity
    • Spawn Selector
    • Camera and Scene
    • Arrival and Welcome
    • Starting Items
    • Loading Screen
    • Discord
    • Logs
    • Theme and Branding
    • Translations
    • Commands and Permissions
    • Database
    • Integrations
    • Hooks
    • Exports and Events
    • Examples
    • Security
    • Troubleshooting
  • DevTool
  • Fishing
  • πŸ—ƒοΈGarages V2
  • 🚌Bus Job
  • πŸš—Vehicle Shop V1
  • πŸ—ƒοΈGarages V1
  • 🍁Selldrugs
  • πŸŽ…Advent Calendar
  1. Docs
  2. /Multicharacter
  3. /Discord

Multicharacter

Discord

config/discord.lua and discord-secrets.lua - role slots, staff list, and player identity from Discord.

On this page2 sections
  • Bot token
  • Bot setup
Lua
Config.Discord = {    checkRoles   = true,    showIdentity = true,}
OptionDescription
checkRolesReads player roles from your Discord server. Needed for Config.SlotsByDiscordRole.
showIdentityShows the Discord name and avatar on character select.

Discord is optional. Without it, everything else works normally.

Bot tokenLink copied

config/discord-secrets.lua
Config.Discord.botToken = 'YOUR_TOKEN'Config.Discord.guildId = '123456789012345678'

discord-secrets.lua loads only on the server, so the token never reaches players.

Do not move the token to any other file in config/. The others are sent to the client and can be read. Never share this file.

Bot setupLink copied

  1. 1

    Create an applicationLink copied

    Open discord.com/developers/applications (opens in a new tab), click New Application, and give it a name.

  2. 2

    Create the bot and copy the tokenLink copied

    In the Bot tab, click Reset Token and copy it to botToken.

  3. 3

    Enable Server Members IntentLink copied

    In the Bot tab, enable Server Members Intent. Without it, the bot cannot read member roles.

  4. 4

    Invite the botLink copied

    In OAuth2 - URL Generator, select the bot scope and open the generated link. The bot needs no special permissions.

  5. 5

    Add the server idLink copied

    Enable Developer Mode in Discord, right-click your server, choose Copy Server ID, and paste it into guildId.

The player must have Discord linked to FiveM, with Discord running while playing. Otherwise their roles cannot be read.

← PreviousLoading ScreenMulticharacterNext β†’LogsMulticharacter

On this page

  • Bot token
  • Bot setup
↑ Back to top
Ready when you are

Put your server on something that holds up

150+ servers run our resources - ESX, QBCore and standalone. Once the payment clears, the package is waiting in Keymaster.

Browse the catalogueAsk on Discord β†—
  • Delivered instantly
  • Support with no expiry
  • 100+ reviews
  • Payment via Tebex

SleepyCode

FiveM Scripts

Checkout is run by Tebex Limited- they handle payment, invoicing and refunds. Β© 2026

Community

  • Discord
  • YouTube
  • X (Twitter)

Navigation

  • Home
  • All Scripts
  • ESX Scripts
  • QBCore Scripts
  • Free Scripts
  • About
  • Blog
  • Documentation
  • Support

Legal

  • Privacy Policy
  • Tebex Privacy Policy
  • Terms of Service
  • Impressum

Β© 2026 SleepyCode. Not affiliated with Rockstar Games or Take-Two Interactive.

Powered byTebex