Customize = { Tebex_Buy_Slot_Enable =true, Tebex_Buy_Slot_Command ="buySlot", -- This is the command that will be executed}
In your Tebex store:
Create the character slot package
Go to the package settings
Choose Game Server Commands as deliverables for this package
Under "Game Command", add:
buySlot {transaction}
The {transaction} parameter will automatically be replaced with the transaction ID
When a player purchases a slot:
They will receive an email with the transaction ID
They can enter this ID in the "Extra Slot" menu in-game
The system will verify the purchase and grant the additional slot
Important Notes
Make sure your Tebex store is properly connected to your FiveM server
The command must match exactly what you set in Tebex_Buy_Slot_Command
Keep Tebex_Buy_Slot_Enable = true to allow this functionality
Verify Installation
Start your server
Create new character
Check if all features work properly
Important for ESX Users
Go to es_extended configuration and make sure you have these 2 options set to 'true'
Config.Multichar =trueConfig.Identity =true
DATABASE FOR QBCORE
CREATE TABLE IF NOT EXISTS `players` (`id`int(11) NOT NULL AUTO_INCREMENT,`citizenid`varchar(50) NOT NULL,`cid`int(11) DEFAULT NULL,`license`varchar(255) NOT NULL,`name`varchar(255) NOT NULL,`money`text NOT NULL,`charinfo`text,`job`text NOT NULL,`gang`text,`position`text NOT NULL,`metadata`text NOT NULL,`inventory` longtext,`last_updated`timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`citizenid`), KEY `id` (`id`), KEY `last_updated` (`last_updated`), KEY `license` (`license`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;COMMIT;