Open-source FiveM scripts, MLOs, vehicles & server packs for ESX, QBCore & Qbox. Browse Shop →
All Shop
Scratchcard (LuckGame)

Description

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 scratchcard in your database

How to Install

  • Drop the script folder into your resources folder and name it scratchcard.
  • Make additions to config.lua, if needed (prizes, symbols, Discord webhook).
  • Add ensure scratchcard into your server.cfg.

Related resources

All resources →