Scratchcard (LuckGame) is a small FiveM lottery script for ESX. Players use a scratchcard item and scratch the card open in an on-screen UI; matching symbols win a cash prize. The code is open, so it can be ported to other frameworks.
Features
- Scratch the card with your mouse in a browser (NUI) interface.
- Fully configurable: currency symbol, the symbols on the card and the list of cash prizes.
- Adding more symbols to the list changes the chance of getting a prize.
- Optional Discord logs via webhook.
- Works with ESX (can be ported to other frameworks).
- Open source, including the UI source files, so you can edit the code.
Requirements
- ESX with an item called
scratchcardin your database
How to Install
- Drop the script folder into your
resourcesfolder and name itscratchcard. - Make additions to
config.lua, if needed (prizes, symbols, Discord webhook). - Add
ensure scratchcardinto your server.cfg.