Update weed.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2024-05-07 04:46:04 -07:00
1 parent e80c027647
commit 71b8d039b8
1 file changed
+1 -10
+1 -10
View File
@@ -190,16 +190,7 @@ local keef = Player.Functions.GetItemByName("grindedweed")
end
end)
local blunts = { 'dextroblunts', 'leanblunts', "chewyblunt", 'blunt' }
for k, v in pairs (blunts) do QBCore.Functions.CreateUseableItem(v, function(source, item)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if TriggerClientEvent('md-drugs:client:smokeblunts', source, item.name) then
Player.Functions.RemoveItem(item.name, 1)
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[item.name], "remove", 1)
end
end)
end