Character Slotes

Configure how players receive additional character slots through Discord roles, Tebex purchases, or custom licenses.

๐Ÿ“Š Slot Calculation

A player's total slots are calculated as:

Total Slots = Default + Database + Discord + Custom License
Source
Description

Default

Config.DefaultCharacterSlots value

Database

Slots stored in 0r_multicharacterv3 table

Discord

Bonus slots from Discord roles

Custom License

Bonus slots from specific license IDs


๐Ÿ”ข Default Slots

Set the base slot count for all players:

Config.DefaultCharacterSlots = 1  -- Everyone starts with 1 slot

๐ŸŽฎ Discord Role Slots

Grant bonus slots based on Discord roles:

Config.CharacterSlots = {
    Discord = {
        status = false,  -- Enable Discord slot system
        roles = {
            {
                id = 1234567890123456,  -- Discord Role ID
                slot = 1,               -- Bonus slots
            },
            {
                id = 9876543210987654,  -- VIP Role
                slot = 3,               -- +3 bonus slots
            },
        }
    },
    -- ...
}

Setup Requirements

  1. Install a Discord bot/integration that provides role checking

  2. Configure your Discord guild ID

  3. Add role IDs and corresponding slot bonuses

How to Get Role IDs

  1. Enable Developer Mode in Discord (Settings โ†’ Advanced)

  2. Right-click the role โ†’ Copy ID

Players receive slots from their highest applicable role, not cumulative.


๐Ÿ’ณ Tebex Integration

Sell character slots through your Tebex store:

Tebex Setup

  1. Create a package in your Tebex store

  2. Note the package ID

  3. Add it to the packages list

  4. Configure Tebex API in server/tebex.lua

How Players Redeem

  1. Player purchases package on Tebex

  2. Tebex provides a redemption code

  3. Player enters code in the character selection UI

  4. Slots are added to their account


๐Ÿ”‘ Custom License Slots

Grant slots to specific license identifiers (useful for staff/VIPs):

How to Get License IDs

In-game, run:

Or check your database players table.


๐ŸŽŸ๏ธ Redeemable Codes

Create one-time use codes that grant slots:

Adding Codes via Database

Adding Codes via Command

Create a command in server/commands.lua:


๐Ÿ“‹ Complete Configuration Example


โšก Admin Commands

Add slots directly to players via commands:


โ“ FAQ

Q: Do Discord slots stack with Tebex slots? A: Yes! All sources are additive.

Q: What happens if a player has multiple Discord roles? A: They receive slots from the role with the highest slot value.

Q: Can slots be removed? A: Yes, modify the database directly or create a remove command.

Last updated