Open-source FiveM scripts, MLOs, vehicles & server packs for ESX, QBCore & Qbox. Browse Shop →
All Shop
Scratch Lottery

Description

Scratch Lottery (resource BakiTelli_lottery) adds scratch tickets to QBCore servers. Players use a scratch card item, scratch the ticket in a NUI and receive the prize they reveal.

Features

  • Scratch card item (default scratchcard) that opens the scratch UI
  • Prize list in the config: each prize is money or an item with label, amount and image (defaults include cash prizes, a weapon, extra scratch cards and food)
  • Guaranteed prize option (default $50 cash)
  • Adjustable probability for empty results (Config.EmptyProbability, default 50)
  • Inventory setting: default, ox_inventory, quasar or other
  • Player profile picture in the UI via a Steam API key set in the config

Requirements

  • QBCore (folders NEW and OLD for newer and older QBCore versions)
  • mysql-async (config also lists ghmattimysql and oxmysql)

Installation

  • Add the scratchcard item to your items and a way to get it (for example a shop).
  • Enter your own Steam API key and set prizes in shared/config.lua.
  • Add ensure BakiTelli_lottery to your server.cfg.

Related resources

All resources →