Skip to content

Script for FiveM that adds customizable lotteries with automatic drawings.

Notifications You must be signed in to change notification settings

CCasusensa/s1lent_lottery

 
 

Repository files navigation

s1lent_lottery

Features

  • Automatic scheduled drawings
  • UI for purchasing lottery tickets
  • Ability to create custom lottery drawings

Usage

  • Go to the LS Lottery Office in the city to purchase tickets for the available lotteries
  • Once the lottery has been drawn, return to the LS Lottery Office to redeem your tickets
  • For custom lottery drawings, see Customization
  • Look at the Wiki Page for full information

Requirements

Download & Installation

  • Download the latest release
  • Rename folder to s1lent_lottery and place it in your resources folder
  • Add the following to your server.cfg:
start s1lent_lottery
  • Import s1lent_lottery.sql in your database
  • Important to do before starting s1lent_lottery for the first time: In s1lent_lottery_config.lua, update default lotteries with correct date (MM/DD/YYYY):
    • Daily Lotto: Date of next day where 12:00 will occur (may be current day if before 12:00)
    • Monday Lotto: Date of next monday where 18:00 will occur (may be current day if before 18:00)
    • Friday Lotto: Date of next friday where 18:00 will occur (may be current day if before 18:00)
  • See Customization to learn how to customize and create lottery drawings
  • See Errors for help with errors

About

Script for FiveM that adds customizable lotteries with automatic drawings.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 62.7%
  • JavaScript 20.7%
  • HTML 10.5%
  • CSS 6.1%