Dynamic Scratch Cards [ox_inventory]

Description:
A simple yet flexible scratch card system based on ox_inventory metadata. Built with React to allow dynamic card sizes to be created based on metadata.

Wins are generated based on percentage with the actual payouts being fully random. Only gold colored symbols are paid out with a minimum number of symbols defined by the config.

All payouts are handled 100% server side with the client just being used to display the cards.

Preview:

GitHub Link:

Dependencies:
ox_inventory
ox_lib

Supports:
Qbox, QB, ESX, and ND

Code is accessible Yes
Subscription-based No
Lines (approximately) 300
Requirements ox_inventory
Support Yes/No
3 Likes

When I buy a card from the shop the image disappears in my inventory. The image for each ticket shows in the store but when I buy one the image is gone and it is just the name.

1 Like

Did you add the items to a shop with the metadata field and it shows different pictures for each scratchcard? When you use them do you get a progress bar that says Using 4x3 Scratchcard?

Is there anyway to change the $ signs to £ signs?