Skip to Content
MulticharacterExtra Slots

Extra Slots

crm-multicharacter can grant players extra character slots based on their Discord roles. Follow the steps below to set it up.

Add your Discord bot details

Open the server file:

      • crm-sconfig.lua

Find this section and replace nil with your real Discord server ID and bot token:

crm-multicharacter/crm-config/crm-sconfig.lua
-- Add your Discord server id / bot token here. crm_sconfig.crm_extraslots = { crm_enable = true, -- false = ignore Discord extras, only use crm_defaultslots -- Your Discord server (guild) id crm_serverid = nil, -- Example: '1155071753475870850' -- Bot token from Discord Developer Portal crm_bottoken = nil, -- Example: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' }

You’ll need a bot created in the Discord Developer Portal  and invited to your server. It doesn’t need any permissions — it’s only used to read member roles.

Configure extra roles and slots

Open the config file:

      • crm-sconfig.lua

Find the premium settings and map each Discord role ID to the number of extra slots it grants:

crm-multicharacter/crm-config/crm-sconfig.lua
crm_sconfig.crm_extraslots = { crm_enable = true, -- false = ignore Discord extras, only use crm_defaultslots -- Your Discord server (guild) id crm_serverid = nil, -- Example: '1155071753475870850' -- Bot token from Discord Developer Portal crm_bottoken = nil, -- Example: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' -- ['DiscordRoleId'] = numberOfExtraSlots crm_roles = { -- ['1525721764741517342'] = 1, -- ['1525721795477373098'] = 2, -- ['1525721822795005953'] = 3, } }
  • Keep crm_enable set to true to activate extra slots.
  • Each entry in crm_roles gives players with that role the listed number of extra slots. For example, ['123456789012345678'] = 2 grants 2 extra character slots.