Pickle's Lottery System (version 1.0.1) adds a realistic lottery to FiveM ESX and QBCore servers: Keno, Moneyball and scratch-off tickets, sold at configurable lottery stations.
Features
- Keno and Moneyball Tickets: Fill in your own numbers to play!
- Three Included Scratch-Off Tickets: Pickle's, Wild Cherry and Lucky 7's, with the option to add your own custom scratch-offs.
- Configurable Lottery Stations: Tailor each station to your needs (location, blip, model, items and prices).
- Past and Current Game Tracking: Keep track of Keno and Moneyball game histories.
- Winning Sound Effect: Enjoy a celebratory sound when redeeming winning tickets.
- Flexible Proceeds Distribution: Allocate earnings among society or businesses based on store configurations (default: 50% police, 50% ambulance).
- Item-Based Lottery System: A straightforward, inventory-driven lottery system.
- Realistic and Adjustable Odds: Customize the odds for each lottery game in the configuration.
- Target or key press: ox_target, qb-target or qtarget, or markers without target.
Requirements
- Frameworks Supported: ESX (1.1+), QBCore, and any inventory that aligns with these frameworks. (See Inventory Support)
- Custom Bridge Compatibility: You can create your own bridge to integrate with different frameworks. The bridge is open source!
ox_lib and mysql-async
The following inventory systems are supported:
- For ESX:
- Ox Inventory
- Quasar Inventory
- For QBCore:
- QB-Inventory (or any system using QBCore Inventory Methods)
- Ox Inventory
- Quasar Inventory
Installation
- Import
_INSTALL/install.sql (tables lottery_keno, lottery_moneyball, lottery_receipts). - Add the items from
_INSTALL/Items for your inventory (ox_inventory, qs-inventory or QBCore) and copy the item images. - Copy
pickle_lottery into your resources folder and add ensure pickle_lottery after ox_lib in your server.cfg. - Set
Config.Debug = false (it is enabled in the supplied config) and adjust stations and odds in config.lua.
Disclaimers / Notes
- This is the escrow version, limiting access to only the config, bridge, UI, and localization files.
Attributions
- Icons:
- Lucky 7's Icon by IconsNova: Link
- Wild Cherries Icon by Rohim: Link
- Sound Effects:
- Victory Sound by Pixabay: Link