[PAID] Lottery System

FiveM - Lottery System

This script adds the option to purchase a lottery ticket. Lottery starts automatically after the time we set in the config. Player must hit 2 out of 20 numbers (190 combinations). If the player wins, they must re-enter the lottery menu to claim the reward. If more than one person wins, the amount is divided into the number of winners, if no one wins - the pool will be added to the next lottery.

Download

Tebex

Requirements:

  • mysql-async

Resource uses Asset Escrow. In the config you can change the most important things, such as:

  • Identification method (steam identifier by default)
  • Function that checks/adds the player’s money (default ESX)
  • Amount that should be added to the pool after buying a ticket
  • Starting pool for the lottery
  • Notification
  • Ticket price

This will allow you to customize the script for your framework. CSS is fully editable.

By default, the menu opens using the /lottery command. You can disable it and trigger the event e.g. after using an item.

Video


4 Likes

Hi there cool design, I just have a few questions.

If the player is offline and they win, do they still get their winnings or do they have to physically be there to get it?

Also, what happens if multiple people have the same number. Do they all just win? Does it split the pool or do they all get the same amount?

can I change the time with my fires automatically time ?

Hey, please check description again :slight_smile: I updated it.

I added this option to the config, if you purchased the script, download it again and update the SQL.

where can i set the time ?

Check server config, everything is described there.

I don’t see the answer about whether someone will get the money if they are offline.
I mean, I see that they have to re-enter the menu. But if I’m offline and win – will I still be able to claim my prize?

Yes, there is no difference - the reward is saved in the database.

Hi Can I ask you to update the script to get everyone notified about what was the winning number when the draws happening? Or if you can upload it to keymaster the open source version of the code I can do it myself.