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 LicenseDefault
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
Install a Discord bot/integration that provides role checking
Configure your Discord guild ID
Add role IDs and corresponding slot bonuses
How to Get Role IDs
Enable Developer Mode in Discord (Settings โ Advanced)
Right-click the role โ Copy ID
๐ณ Tebex Integration
Sell character slots through your Tebex store:
Tebex Setup
Create a package in your Tebex store
Note the package ID
Add it to the packages list
Configure Tebex API in
server/tebex.lua
How Players Redeem
Player purchases package on Tebex
Tebex provides a redemption code
Player enters code in the character selection UI
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