
cratch Card System | ESX, QBCore & QBox
A modern scratch card system for your FiveM server. Players use an item, scratch off the cells in a smooth, animated NUI and win money or items. Prizes are rolled securely on the server, and the script automatically detects your framework and inventory, so it works out of the box.
Features
- ESX, QBCore & QBox compatible (auto-detect, or set manually in the config)
- ox_inventory support (auto-detect) as well as the default framework inventories
- Modern, animated scratch NUI with sound effects
- Secure server-side prize rolling – the UI only displays the result
- Weighted rarities (Common, Uncommon, Rare, Epic, Legendary) with your own colors and icons
- Prize types: cash, bank/account money or items
- Configurable win chance, number of cells and matching cells needed to win
- Adjustable scratch sensitivity and brush size
- Mini scratch card above the player's head, so nearby players can watch the progress and the result
- Scratching animation for the player
- Fully configurable texts and notifications (framework default, ox_lib or your own system)
- Account mapping per framework for custom account names
- Colors and design adjustable via theme.css – no rebuild required
- Clean, structured and well-commented code
- No core modifications required
Configuration
Everything is set in a single config file:
- Framework & inventory detection
- Item name
- Win chance, cells & match count
- Scratch sensitivity & brush size
- Rarities & prizes
- Sounds
- Player animation
- Overhead display (range, size, duration)
- Texts & notifications
- Account mapping
How it works
1. The player uses the scratch card item from their inventory.
2. The scratch NUI opens.
3. The player scratches off the cells with the mouse.
4. Enough matching symbols make the card a winner.
5. The prize is paid out automatically.
6. Nearby players see the progress and the result above the player's head.
Included
- Client & server scripts
- Config file
- Prebuilt NUI
- SQL file for ESX, plus item examples for QBCore and ox_inventory
- Easy installation guide (README)
- Free future updates
Requirements
- ESX, QBCore or QBox
- Any compatible inventory (default / ox_inventory)
- OneSync (for the overhead display)
Support
Have a question before buying? Open a ticket on our Discord server.