π§ Configuration
[!NOTE] Don't touch this line
Season, Config, Noti, Lang = {}, {}, {}, {}
Season Configuration
Configure the season duration and number:
Season.number = 1 -- What season is it? Leave on 1 if it is the first season
-- Enter the date when the season ends
Season.day = 15
Season.month = 6
Season.year = 2023
Season.hour = 0
Season.min = 0
Season.sec = 0
Framework Configuration
-- Use "esx" or "qb"
Config.Framework = "esx"
-- Default ESX: "esx:getSharedObject" | Default QB: "qb-core"
Config.Core = "esx:getSharedObject"
-- Enter your tebex website, discord, etc...
Config.Website = "https://bit.tebex.io"
-- Battle pass price
Config.PassPrice = 100
-- Default language
Config.Locale = "en"
-- Options: oxmysql, mysql-async or ghmattisql
Config.Mysql = "oxmysql"
UI Settings
-- Key to close the menu
Config.CloseMenuKey = "Esc"
XP System
-- Use the time on the server to assign points and increase level
-- With this option enabled the /addxp command will not work
Config.XPbytime = true
-- 1 point by second
Config.XPbytimeMultiplier = 1
-- How often time points are applied in seconds
Config.TimeDelay = 30
Discord Webhook
-- URL of discord for webhook
Config.DiscordWebhookLink = ""
Advanced Settings
-- If you use Core_Credits script to manage credits
Config.CoreCredits = false
-- By default the superadmin and admin groups have permissions for commands
-- If you want you can add one more group
Config.CustomGroupPermissions = "developer"
-- Allow the user to buy 25 levels when purchasing the vip pass
Config.Buy25Levels = false
-- Price of the first 25 levels if purchased by the user
Config.LevelsBuyPrice = 100
Config.checkLevels = false
Database Tables
Config.xpTable = "xp"
Config.xprewardTable = "xpreward"
Config.xpviprewardTable = "xpvipreward"
Config.vipTable = "vip"
Config.coinsTable = "coins"
Inventory System
Config.moneyIsItem = true
Config.moneyItem = "money"
Config.useOXInventory = true
Config.useQSInventory = false
Config.useCustomInventory = false
function customInventoryAddItem(playerID, item, amount)
-- Insert your export or trigger here
end
Notifications
Noti.error = "error"
Noti.success = "check"
Noti.time = 5000
Noti.money = "Battlepass: You have received $"
Noti.weapon = "Battlepass: You have received a weapon!"
Noti.item = "Battlepass: You have received"
Noti.xpadded = "Battlepass: Yo have received"
Noti.coins = "Battlepass: Yo have received"
Noti.coinsType = "coins"
function notifications(notitype, message, time)
-- Insert here with your notification system trigger or export like this:
-- exports["bit-notifications"]:Notification({['type'] = notitype,['message'] = message})
end
Language Strings
Lang.newVIP = "Congratulations! You are now a VIP user!"
Lang.noCoins = "You don't have enough coins"
Lang.alreadyVIP = "You are already a VIP user"
Lang.receivedCar = 'You received a vehicle!'
Ranks Configuration
Each rank can be configured with rewards for both free and VIP pass holders:
Config.Ranks = {
[1] = {
xp = 0,
ranks = 1,
-- Free Pass Rewards
freeiscoin = "false",
freecoinamount = "",
freeismoney = "false",
freeisweapon = "false",
freeiscar = "false",
freecarname = "",
freeitemname = "x10 Sandwich",
freeitemormoney = "sandwich",
freequantity = "10",
freeweaponname = "",
freeimage = "./img/sanm.png",
-- VIP Pass Rewards
vipactive = "true",
vipiscoin = "false",
vipcoinamount = "",
vipismoney = "true",
vipisweapon = "false",
vipiscar = "false",
vipcarname = "",
vipitemname = "15000$",
vipitemormoney = "15000",
vipquantity = "",
vipweaponname = "",
vipitemimg = "./img/money.png"
},
-- Additional ranks...
}
Reward Types
Each rank supports the following reward types:
- Coins: Battle Pass currency (
freeiscoin/vipiscoin) - Money: In-game cash (
freeismoney/vipismoney) - Items: Inventory items (
freeitemormoney/vipitemormoney+ quantity) - Weapons: Weapon spawns (
freeisweapon/vipisweapon+ weapon name) - Vehicles: Car rewards (
freeiscar/vipiscar+ car model name)
Rank Configuration Properties
xp: Total XP required to reach this rankranks: Rank number (1-25+)freeitemname: Display name for free rewardvipitemname: Display name for VIP rewardfreeimage: Image path for free reward (167px x 121px)vipitemimg: Image path for VIP reward (167px x 121px)vipactive: Enable/disable VIP reward for this rank
[!NOTE]
- All boolean values must be strings:
"true"or"false"- Leave values empty (
"") for unused reward types- Images should be 167px x 121px for proper display
- XP values should increase progressively