We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03b851a commit fbce0eeCopy full SHA for fbce0ee
client/weed.lua
@@ -53,7 +53,14 @@ end
53
54
RegisterNetEvent("ps-drugprocessing:processWeed")
55
AddEventHandler("ps-drugprocessing:processWeed",function()
56
- ProcessWeed()
+ QBCore.Functions.TriggerCallback('QBCore:HasItem', function(result)
57
+ if result then
58
+ print('You have this item HA')
59
+ ProcessWeed()
60
+ else
61
+ QBCore.Functions.Notify("You don't have any cannabis!", 'error')
62
+ end
63
+ end,'cannabis')
64
end)
65
66
RegisterNetEvent("ps-drugprocessing:pickWeed")
0 commit comments