Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

FiveM Minigames

Scratchcard

Scratchcard (LuckGame)

chezza
Frameworks:
  • ESX

Checked by the RPScripts Lab

  • Static check: 1 resource read
What was checked
Check compatibility with your server

Details

Frameworks
ESX
File size
997.2 kB
Creator
chezza
Licence and support terms
  • Licence: for your own server or project. No resale or sharing.
  • Updates: when a newer file is available, it appears in your account downloads.
  • Support: download access and product-specific setup questions.
Licence and support terms

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.

Server setup

  1. Unzip the download into your server's resources folder.
  2. Add these lines to server.cfg, in this order:
    ensure Chezza Scratchcard

Step-by-step guide: how to install a FiveM script

Checked: the only resource of this download.

In your downloads
  • Brutal Scripts FiveM Baby Script menu and stroller preview
    • ESX
    • QBCore, vRP
    Not for your framework

    FiveM Baby Script

    Brutal Scripts

    $30.00$21.00
  • FiveM Surfing script preview
    • ESX
    Not for your framework

    FiveM Surfing script

    $4.99$3.49
  • Statistics & Achievements FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    Statistics & Achievements

    kralik

    $19.00$13.30
  • Storm Chasing FiveM resource preview 2
    • ESX
    • QBCore, Qbox
    Not for your framework

    Storm Chasing

    Nights Software

    $35.00$24.50
  • 0R-PAINTBALL V2 FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    0R-Paintball V2 (Script Only)

    0Resmon

    $30.00$21.00
  • Brutal Gym FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    Brutal Gym

    Brutal Scripts

    $14.00$9.80
  • FiveM Daily Lucky Wheel
    • ESX
    • QBCore
    Not for your framework

    Daily Lucky Wheel

    $14.00$9.80
  • FiveM Earthquake Script
    • ESX
    • QBCore, vRP
    Not for your framework

    EarthQuake Script

    $3.00$2.10