🐼 Scripts
um-ronin-multi
how-to
extra slot

Extra Slot

um-ronin-multicharacter - config - extraslot.lua

To configure extra character slots for players, you can modify the extraslot.lua configuration file.

There are three ways to add extra slots:

Licence Slot (basic)

  • Adding this licence grants the recipient an additional slot; no setup is required.
--[[
    this license based extra slot configuration
    if you are using Discord role-based extra slots, this will be disabled.
]]
slots.list = {
    {license = "license2:d2e126c8342d33460756", slot = 9},
    -- {license = "license:xxxx2", slot = 7},
    -- {license = "license:xxxx3", slot = 3},
    -- {license = "license:xxxx4", slot = 4},
    -- {license = "license:xxxx5", slot = 1},
}

Discord Role Slot (advanced)

  • This method requires the use of a Discord bot to assign roles to users. Each role can correspond to a specific number of extra slots.
  • Get guild id here (opens in a new tab)
⚠️

You do not need to grant administrator permission; it is sufficient for it to be present on the server.

🚫

Token should not be shared with anyone, this is as important as your server key!

# Add these to your server.cfg
set um:DISCORD_GUILD_ID "your_guild_id_here"
set um:DISCORD_BOT_TOKEN "your_bot_token_here"
--[[
    if Discord role-based extra slots are used, add role IDs and slot counts here
    need add convar in [server.cfg]
    set um:DISCORD_BOT_TOKEN "your_bot_token_here"
    set um:DISCORD_GUILD_ID "your_guild_id_here"
]]
slots.discordRoles = {
    { id = "1372592152718213232", slot = 1 },
    -- { id = "roleid", slot = 3 },
    -- { id = "roleid", slot = 4 },
    -- { id = "roleid", slot = 5 },
    -- { id = "roleid", slot = 6 },
}

Tebex Package Slot (need tebex setup)

This method allows you to sell extra character slots through Tebex.

  • config > main.lua > tebexShopImport set to true
  • follow the Tebex guide to set up Tebex integration.
-- If true, import slot total from Tebex shop (Requires tebex sv_secretKey convar to be set)
tebexShopImport = true,