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-main.lua
Find this section and replace nil with your real Discord server ID and bot token:
crm-multicharacter/crm-open/crm-server/crm-main.lua
-- Add your Discord server id / bot token here.
local crm_discord = {
crm_server_id = nil, -- Example: '1155071753475870850'
crm_bot_token = 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 premium roles and slots
Open the config file:
- crm-config.lua
Find the premium settings and map each Discord role ID to the number of extra slots it grants:
crm-multicharacter/crm-config/crm-config.lua
-- Premium / locked slot settings
crm_config.crm_premium = {
crm_enable = true, -- Enable premium slots
crm_showcase = true, -- Show a locked slot so players know premium exists
crm_roles = { -- Map Discord role IDs to a number of extra slots
-- ['1239685853337489439'] = 3,
-- ['1244583824713580606'] = 1,
},
}- Keep
crm_enableset totrueto activate premium slots. - Each entry in
crm_rolesgives players with that role the listed number of extra slots. For example,['123456789012345678'] = 2grants 2 extra character slots.