First of all DONT rename the folder (lotto). just upload the lotto into your recources.
- QbCore framework (https://github.com/qbcore-framework)
- none
- Download or clone this repository inside your resources folder
- Remove the "-main" part from folder name
- Upload the lotto.png into your inventory/html/images folder
- Add a line to your server.cfg file -> start qb-carrobbery
- ADD see below to your qb-core/shared.lua
["lotto"] = {
["name"] = "lotto",
["label"] = "Lotto ticket",
["weight"] = 10,
["type"] = "item",
["image"] = "lotto.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Lucky Ticket"},
https://media.giphy.com/media/tupEdbE0QE6USnbZsr/source.gif
https://media.giphy.com/media/l1Kx74oMJweCiFZOL6/source.gif
Credits to the original author for the script.
DO NOT SELL THIS SCRIPT, ITS FREE FOR QBCORE COMMUNITY