QADR Tebex Shop is a professional Tebex payment system integration developed for RedM servers. This script allows your players to securely shop from the in-game store and automatically receive their rewards.
✨ Features
✅ Secure Payment System: Safe payment processing with Tebex infrastructure
✅ Automatic Product Delivery: Products are automatically delivered to players upon payment completion
✅ Multi-Package Support: Multiple packages can be purchased in a single transaction
✅ Browser Integration: Seamless payment experience through Steam overlay
✅ Real-time Status Tracking: Track payment status in real-time
✅ Multi-Language Support: English and Turkish language support
✅ Database Management: All transactions are stored in the database
✅ Cancel and Rollback: Players can cancel the transaction at any time
🔧 Technical Requirements
RedM Server (prerelease build)
MySQL Database (mysql-async or oxmysql)
RedEM Roleplay Framework
Tebex Account (with Creator API access)
📦 Installation
Step 1: Script Download and Placement
Copy the script files to your server's resources folder
Make sure the folder name is qadr_tebex_shop
Step 2: Database Setup
The script will automatically create the required table on first startup. However, if you want to create it manually:
Step 3: server.cfg Configuration
Add the following line to your server.cfg file:
Important: Make sure the script starts after redem_roleplay and database resource:
Step 4: Database Connection
If you're using oxmysql, edit the fxmanifest.lua file:
CREATE TABLE IF NOT EXISTS qadr_tebex_shop_orders (
id INT AUTO_INCREMENT PRIMARY KEY,
playeridentifier VARCHAR(255) NOT NULL,
basketident VARCHAR(255) NOT NULL,
`status` ENUM('waiting', 'canceled', 'completed') DEFAULT 'waiting',
qadr_tebex_shop_id VARCHAR(255) NOT NULL,
ordernumber VARCHAR(255),
INDEX idx_playeridentifier (playeridentifier),
INDEX idx_basketident (basketident),
INDEX idx_qadr_tebex_shop_id (qadr_tebex_shop_id),
INDEX idx_ordernumber (ordernumber)
);
server_script {
'@oxmysql/lib/MySQL.lua', -- Use this line instead of mysql-async
"server/server_conf.lua",
"server/verification.lua",
"server/server.lua",
}
1. Player uses /checkout command
↓
2. Client sends package information to server
↓
3. Server creates basket on Tebex
↓
4. Browser opens for player to log in
↓
5. Player logs in on Tebex
↓
6. Products are added to basket
↓
7. Player makes payment
↓
8. Server verifies payment
↓
9. Rewards are automatically given to player
{
status = "pending" | "success" | "Error" | "firstOpening",
text = "Error message", -- Only for Error status
base_price = 0.00, -- Total price
ident = "basket_ident", -- Basket ID
user = "username", -- Username
rewards = {} -- Reward list
}