Prints debug messages to the console. Disable in production.
MBT.Framework
string
"ESX"
Set to "ESX" for ESX Legacy or "QB" for QBCore. Must match the running framework exactly.
MBT.Timezone
number
0
UTC offset in hours applied to timestamps in draws.json and prize delivery time logs. 0 uses the server's local time.
TxAdmin Integration
MBT.UseTxAdmin = trueMBT.GlobalKickTime = 60
Option
Type
Default
Description
MBT.UseTxAdmin
boolean
true
When true, the script listens for txAdmin:events:serverShuttingDown and txAdmin:events:scheduledRestart to auto-save stats. Set to false if you don't use TxAdmin and trigger yourself.
All visible text in the personal NUI panel. Edit Description to change the info text shown in the panel header, and Labels to translate or rename the stat names.
Deaths caused by any weapon hash in this list are ignored — they do not increment the victim's death counter and do not count as a kill for anyone. Add GTA weapon hashes to exclude other death types (e.g. falling, drowning).
"Weekly" checks the day name against Weekly.Day. "Monthly" checks the day number against Monthly.Day.
Weekly.Day
PrizeInfo entry format
{ Type = "item", Name = "WEAPON_PISTOL50", DropChances = { { RollRange = { Min = 1, Max = 97 }, Quantity = 1 }, { RollRange = { Min = 98, Max = 100 }, Quantity = 2 }, }}
Each entry is rolled with a math.random(1, 100). If the result falls within a RollRange, that Quantity of the item is added to the prize pool. Multiple entries can match in the same roll (one roll per entry). Name = "money" is treated as cash by the delivery function.
Prize Delivery Function
MBT.DeliverPrizeFunction = function(data) -- data.Source — server ID of the winner -- data.Prize — array of { itemName, quantity } -- data.QBPlayer — QBCore player object (or false) -- default preset uses ox_inventory:AddItemend
Replace the body with your own inventory calls if you don't use ox_inventory. The function must return true on success or return false, errorString on failure. If it returns false, the system retries after 20 seconds.