Installation
xDreamLand edited this page Mar 3, 2024
·
4 revisions
If you want to make a installation guide which can be displayed in here? Let me know!
QBCore Framework is required
- Download the latest dr-scratching version here
- Extract somewhere in your resources/ folder (you can put it in subfolders if you want)
- Head over to
qb-core
- Navigate to
shared/items.lua
- Add the following line somewhere in the config (feel free to change it around if you know what you're doing):
scratch_ticket = { name = 'scratch_ticket', label = 'Scratch Ticket', weight = 25, type = 'item', image = 'scratch_ticket.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Odds Are Meant to be Beaten' },
- Head over to
qb-inventory/html/images
- Put in an image for the scratch ticket. (same name as the image attribute in your
shared/items.lua
, the default name isscratch_ticket.png
) - All set, check the console for errors, if none try it out in-game:
/giveitem [your_playerid] scratch_ticket 1
, you can now add it into your shop or do whatever you want with it. You just have to give the item to the player.
Check out the console for more settings e.g. prices, cooldowns, webhooks, ... Enjoy!