Pickle's Lottery System | Keno, Moneyball, and Scratch-offs! | Realistic Lottery System

More Information & Scripts can be found here!

Preview

What is this?

This is a realistic, first of it’s kind, lottery system that has a variety of games for players to play!
This includes Keno, Moneyball, and three scratch-offs - all purchaseable through lottery stations.
Each lottery station has a configurable store, including a way to disperse each purchase a player makes into business’s accounts!

Features

  • Keno and Moneyball Tickets. (You can fill your own numbers!)
  • Three included scratch-off tickets. (You can add your own as well!)
  • Configurable Lottery Stations.
  • View past and current games for Keno and Moneyball.
  • Win sound effect upon redeeming a winning lottery ticket.
  • All proceeds can be divided amongst society / businesses in each store's config.
  • Item-Based Lottery System.
  • Realistic odds for all lottery games. (This is configurable in each game's config!)
  • And more!

Requirements

  • ESX (1.1+) / QBCore, and a supported inventory for the framework. (See Inventory Support)
  • Ox Lib (Required, Works anywhere).
  • MySQL Wrapper (Ox MySQL, mysql-async, etc. You likely already have this.)

You can always modify the bridge to port to other frameworks / inventories, even if you buy escrowed.

Inventory Support

These are the supported inventories for each framework.

ESX:

  • Ox Inventory
  • Quasar Inventory

QBCore:

  • QB-Inventory (Or any system that uses QBCore Inventory Methods).
  • Ox Inventory
  • Quasar Inventory

Again, you can always modify the bridge to port to other inventories, even if you buy escrowed.

Installation

  • ensure pickle_lottery after ox_lib.
  • Go to the “_INSTALL” folder.
  • Add the items & images.
  • Run the SQL file.
  • Restart the server.

Need Support?

Click here!

Ready to download?

Escrow Subscription Pack (Lottery System, Landscaping, Advanced Crafting, and more for only $19.99/mo):

https://store.picklemods.com/category/subscriptions

Escrow Version ($24.95):

https://store.picklemods.com/package/5822376

Source Code Version ($69.95):

https://store.picklemods.com/package/5822389


Code is accessible No
Subscription-based No
Lines (approximately) ~2000
Requirements Ox Lib
Support Yes
9 Likes

There isnt any actual drawing that occurs?
It looks like i can get the results of the the lottery tickets where you choose the numbers as soon as its purchased?

There are real drawings server-wide that occur once a minute for Keno and Moneyball.

It shows this in the video.

Unlike other lottery scripts, you can choose the numbers you want to play and view real results generated through the server-side.

1 Like

as always great work bro

1 Like

Can it be added to escrow version to which society to take money from (or add money to when lottery bought)? I would like to add it to my casino faction

This is already possible, as described in the features list.

Each store has an account list that you can add and remove business accounts in.

This also applies for a casino.

Thanks, and is target system required or will it work without it?

It will work without it, just set Config.EnableTarget to false, and it’ll use a keypress (E) to interact.

A fatal copy bug exists.
With kino tickets and moneyballs, you pick a number, get a recipe, and then you can get that recipe back an unlimited number of times, which is pretty daunting for money copying.

this scripts awesome, the openness to the code even with the escrowed copy makes it easy for me to integrate even with banking systems like renewed banking. Players love it, I now have a new coin sink and am very happy with the product. 10/10 well done.

1 Like

A fatal copy bug exists.
With kino tickets and moneyballs, you pick a number, get a recipe, and then you can get that recipe back an unlimited number of times, which is pretty daunting for money copying.

In the words of a famous developer: “It’s not a bug, it’s a feature.”

You are able to play multiple of the same game, with either the same numbers, or new ones, and it still charges you each time you wager by inserting the ticket.

This is why inserting your Keno / Moneyball ticket doesn’t remove itself, it’s intended to be replayable.

Again, this is how it works in real life, which is the goal of this script - to be as realistic as possible.

I’m really sorry for reporting it without looking into it well. I stupidly just had to charge a fee at the time of insertion, but it was my mistake. I didn’t know how to use it in real life. please forgive my rudeness

100% perfectly working script with no bugs, I highly recommend it

1 Like

prize money can be changed

1 Like

Correct! Both prizes and odds can be changed for games through the config.

It can be used as a company, as a job, it would be fine

THis look great!

1 Like

Correct! There are configurable society / business accounts you can set percentages for each store to earn money off of every purchase.

1 Like

Thank you for your kind words! I’m really happy people are seeing this script.

1 Like

W script

1 Like

Awesome, I’m glad you like it!