> ## Documentation Index
> Fetch the complete documentation index at: https://rust-co.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Character slots

> Slots padrão, overrides, Discord e regras custom/Tebex.

Se todos terão o mesmo número, `Config.DefaultCharacterSlots` resolve. O resto é para VIP, supporter, staff ou compra de slots.

## Ordem de resolução

1. `ResolveCustomSlots`
2. Discord (quando ligado)
3. override manual aplicável
4. limite do framework
5. `Config.DefaultCharacterSlots`

Sempre limitado por `Config.MaxCharacters`.

## É total, não bônus

VIP = `5` significa **5 personagens no total**, não default + 5.

## Override manual

```lua theme={"dark"}
CreatorServerConfig.PlayerSlots = {
    ['license:...'] = 5,
}
```

## Discord

```lua theme={"dark"}
CreatorServerConfig.Discord = {
    enabled = true,
    guildId = '123456789012345678',
    botToken = 'YOUR_BOT_TOKEN',
    defaultSlots = 1,
    roleSlots = {
        ['SUPPORTER_ROLE_ID'] = 3,
        ['VIP_ROLE_ID'] = 5,
    },
}
```

Guia: [Discord role slots](/pt-BR/rco-creator/discord-roles-setup).

## Tebex/banco próprio

```lua theme={"dark"}
CreatorServerConfig.ResolveCustomSlots = function(source, identifiers)
    local slots = MyStoreGetSlots(identifiers.license)
    if slots then return slots end
    return nil
end
```

Retorne o total ou `nil` para cair no próximo resolver.
