1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-06-25 01:55:50 +02:00
parent 7038c11f51
commit 92c426369b
7 changed files with 146 additions and 1 deletions

View file

@ -0,0 +1,13 @@
QBCore = exports['qb-core']:GetCoreObject()
QBCore.Functions.CreateCallback('qb-hookah:removeTobacco', function(source, cb)
local Player = QBCore.Functions.GetPlayer(source)
if not Player then return cb(false) end
if Player.Functions.RemoveItem('shisha_tobacco', 1) then
TriggerClientEvent('inventory:client:ItemBox', source, QBCore.Shared.Items['shisha_tobacco'], "remove")
cb(true)
else
cb(false)
end
end)