qbcore-framework / qb-shops

Shops For QB-Core
GNU General Public License v3.0
27 stars 214 forks source link

fix(shops): Sell casino chips #147

Closed Sharkiiie closed 1 year ago

Sharkiiie commented 1 year ago

Fix unable to sell casino chips when using drawtext.

Addresses issues #135 #137

daf4ever commented 1 year ago
  1. Rename everything that is named "chips_golden" to "casinochips" except the PNG filename in the file qb-core\shared\items.lua

  2. It should look like this: ["casinochips"] = {["name"] = "casinochips", ["label"] = "Casino Chip", ["weight"] = 0, ["type"] = "item", ["image"] = "casino_goldchip.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Casino Chip"},

  3. For the payout, for example in casino-luckywheel, change all "chips_golden" to "casinochips"

  4. Also change the ped that sells casino chips to the new name "casinochips" just like above