Rup-Lottery | QBCore | Script 🎰

A script by Ruptz

No reviews yet.
Rup-Lottery | QBCore | Script 🎰 main image

Price

Unknown

Full Description

Rup-Lottery

This is a qb-core script that uses LUA, JS and HTML.

Add this item to your stores for players to enjoy scratching away at tickets to try and win the big prize.

To keep supporting my projects please consider liking my forum post :hearts:

Buy Here

Tebex :hand_with_index_finger_and_thumb_crossed:

Docs

Git Book :closed_book:


  • Prizes are configurable
  • The price of the ticket on UI is configurable
  • The notify system is configurable
  • The chances of what you get is configurable
  • Players have to scratch the ticket and can’t glitch it.
  • Optimized

Images




Config.lua

Config = {}

Config.Notify = 'qb' -- okok, qb, ox, custom --[[ See functions.lua for custom ]]

Config.Chances = {
    { chance = 40, prize = "$0" },    -- 40% chance
    { chance = 30, prize = "$2" },    -- 30% chance
    { chance = 15, prize = "$5" },    -- 15% chance
    { chance = 10, prize = "$10" },   -- 10% chance
    { chance = 3, prize = "$50" },    -- 3% chance
    { chance = 1, prize = "$500" },   -- 1% chance
    { chance = 1, prize = "$5000" }   -- 1% chance
}

Config.ScratchPrice = 5 -- Price of Scratch Ticket on the ticket

Config.MinimumScratch = 20 -- The mimimun pixels they need to scratch (Wouldnt reccomend going lower than 20 or higher than 35)

shared/functions.lua is NOT escrowed

Code is accessible No
Subscription-based No
Lines (approximately) 109
Requirements QB-Core
Support Yes
Config Merger
Have you tried Config Merger? Merge your configs easily