uyuyorumstore
um-multicharacter-xviHow-to Guides

Slots

How to set default and extra character slots

Paths

main.lua
slots.lua

Default Slots

config > main.lua
-- Character slots every player gets. Extra slots: config/slots.lua
defaultSlots = 4,

-- Rows in the character list. Slots past the player's own show as locked (more via config/slots.lua, Discord or Tebex)
shownSlots = 6,

Extra Slots

All extra slots add up.

License List

config > slots.lua
list = {
    { license = 'license:xxxx', slot = 2 },
},

Discord Roles

config > slots.lua
discordRoles = {
    { id = '1372592152718213232', slot = 1 },
    { id = '1372592152718213233', slot = 3 },
},
server.cfg
set um:DISCORD_BOT_TOKEN "your_bot_token_here"
set um:DISCORD_GUILD_ID "your_guild_id_here"

Get guild id here

Create a bot, get the token and invite it to your server here

Security Warning

Do not share the token with anyone. It is as important as your server key!

Admin Command

/addcharslot [playerID] [count]

Needs group.admin. count is 1 to 10.

Delete Access

config > main.lua
-- true: everyone can delete their characters. false: only licenses in config/slots.lua deleteAccess
deleteEnabled = true,
config > slots.lua
deleteAccess = {
    'license:xxxx',
},

On this page