Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

FiveM Minigames

Scratch Lottery FiveM resource preview

Scratch Lottery

Frameworks:
  • QBCore

Checked by the RPScripts Lab

  • Static check: all 2 resources read
What was checked
Check compatibility with your server

Details

Frameworks
QBCore
Version
1.5.4
Dependencies
mysql-asyncghmattimysqloxmysql
File size
4.6 MB
Updated
Licence and support terms
  • Licence: for your own server or project. No resale or sharing.
  • Updates: when a newer file is available, it appears in your account downloads.
  • Support: download access and product-specific setup questions.
Licence and support terms

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.

Server setup

Step-by-step guide: how to install a FiveM script

Checked: all 2 resources of this download.

In your downloads
  • Brutal Scripts FiveM Baby Script menu and stroller preview
    • ESX
    • QBCore, vRP
    Not for your framework

    FiveM Baby Script

    Brutal Scripts

    $30.00$21.00
  • Animal Riding FiveM resource preview
    • QBCore
    Not for your framework

    Animal Riding

    Pug

    $9.00$6.30
  • Statistics & Achievements FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    Statistics & Achievements

    kralik

    $19.00$13.30
  • Storm Chasing FiveM resource preview 2
    • ESX
    • QBCore, Qbox
    Not for your framework

    Storm Chasing

    Nights Software

    $35.00$24.50
  • 0R-PAINTBALL V2 FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    0R-Paintball V2 (Script Only)

    0Resmon

    $30.00$21.00
  • Brutal Gym FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    Brutal Gym

    Brutal Scripts

    $14.00$9.80
  • FiveM Daily Lucky Wheel
    • ESX
    • QBCore
    Not for your framework

    Daily Lucky Wheel

    $14.00$9.80
  • FiveM Earthquake Script
    • ESX
    • QBCore, vRP
    Not for your framework

    EarthQuake Script

    $3.00$2.10