Skip to content

Installation

xDreamLand edited this page Mar 3, 2024 · 4 revisions

How to install dr-resources?

If you want to make a installation guide which can be displayed in here? Let me know!

QBCore Framework is required

  1. Download the latest dr-scratching version here
  2. Extract somewhere in your resources/ folder (you can put it in subfolders if you want)
  3. Head over to qb-core
  4. Navigate to shared/items.lua
  5. 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' },
  1. Head over to qb-inventory/html/images
  2. Put in an image for the scratch ticket. (same name as the image attribute in your shared/items.lua, the default name is scratch_ticket.png)
  3. 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!

Clone this wiki locally