[ESX/QB] 💸 Bet System: let players create bets!

:money_with_wings: Bet System


This resource is a bet system that allows players to create bets and place bets (in comparison, it looks like twitch’s prediction system).

> PREVIEW <

> TEBEX <

Specifications & Features

  • Client-side optimised (0.00ms while not in use)
  • Server-side optimised → no server overload when requesting large data (tested with more than 2k bets and more than 50k entries)
  • Fully protected about NUI abuse
  • HTML/JS/CSS editable (not obfuscated or minified)
  • High customisation available
  • Possibility to add logs easily with files left unencrypted
  • Updates
  • ESX or QB (I’ll add other framework if needed)
  • Notification displayed when player has to claim a bet or has to select the choice for his created bet
  • Auto-flush of SQL tables when data is no longer needed

Here is the documentation for those you want to make it working with any other scripts :

Code is accessible No (except for UI files)
Subscription-based No
Lines (approximately) ~3000
Requirements oxmysql and esx or qbcore
Support Yes

Update 1.1.1:

  • :sparkles: feature: Job locked option → option for a job to get a percentage on the total bet amount
  • :hammer_and_pick: fix: uncalled server callback on QBCore

config.lua modifications:

1 Like

Update 1.2.2:

  • :sparkles: feature: Customizable identifier getter (usefull if you have any kind of multichar script) → requested by a user
  • :hammer_and_pick: tweak: customizable framework object getter (usefull if you changed the function’s name) → requested by a user
  • :hammer_and_pick: tweak: macro optimization