Installation
Basic installation instructions for prism_scratchcard
Asset download
To find the asset, you must have made the purchase using your own keymaster account. Otherwise, you can use the transfer system to move the asset to a different keymaster account.
Once the purchase is made on our official website, you will receive your asset directly in your cfx portalย in your own panel you can download the asset and install it following the following documentation.
Dependencies
Make sure you have the following resources installed and running before starting prism_scratchcard:
- ox_lib โ Required for notifications
- Framework โ QBCore, QBX, or ESX
Item Configuration
You need to add scratch card items to your inventory system for each tier you want to use.
ox_inventory
["scratch_card"] = {
label = "Scratch Card",
weight = 100,
stack = true,
close = true,
description = "A standard scratch card - scratch to win!",
},
["scratch_card_premium"] = {
label = "Premium Scratch Card",
weight = 100,
stack = true,
close = true,
description = "A premium scratch card with better prizes!",
},
["scratch_card_vip"] = {
label = "VIP Scratch Card",
weight = 100,
stack = true,
close = true,
description = "An exclusive VIP scratch card with the best prizes!",
},qb-core shared items
["scratch_card"] = {
name = "scratch_card",
label = "Scratch Card",
weight = 100,
type = "item",
image = "scratch_card.png",
unique = false,
useable = true,
shouldClose = true,
description = "A standard scratch card - scratch to win!"
},
["scratch_card_premium"] = {
name = "scratch_card_premium",
label = "Premium Scratch Card",
weight = 100,
type = "item",
image = "scratch_card_premium.png",
unique = false,
useable = true,
shouldClose = true,
description = "A premium scratch card with better prizes!"
},
["scratch_card_vip"] = {
name = "scratch_card_vip",
label = "VIP Scratch Card",
weight = 100,
type = "item",
image = "scratch_card_vip.png",
unique = false,
useable = true,
shouldClose = true,
description = "An exclusive VIP scratch card with the best prizes!"
},Installation
- Drag
prism_scratchcardinto your resources directory - Add
ensure prism_scratchcardto yourserver.cfg - Add the scratch card items to your inventory system as shown above
- Edit configuration as desired โ See Config for all options
- Restart your server
Last updated on