• Stars
    star
    6
  • Rank 2,541,739 (Top 51 %)
  • Language
    Lua
  • License
    Creative Commons ...
  • Created about 2 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A self taught attempt at a first script on my adventure of learning lua. This script provides a lottory ticket for you to put in your stores, an SQL file to add to your data base and tthe functionality of a lottory system for QB based servers. Players purchase a lottry ticket, It submits an entry for that character to the database, than the server does a check every day if its time to draw (Days are set in config file) if it sees its the draw day it will announce the winner on discord (add webhook URL to config) and the ammount they won. (character name, not owner name) ALSO every time an entry is submitted it will also anounce the new POT for the lottory system. Still working on some kinks but its coming along. OH! and theres a /lottodraw command for admins to use to test the draw systems functionality as well. So far, it will choose a winner but if their not in the server at the time of the draw, the draw fails, retries, than loops until it draws a winner that is currently on the server. Im trying to make it so even if their offline they can win! Hope you enjoy!