1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-08-13 23:30:19 +02:00
parent 307f4c0d90
commit 1c16382e41
10 changed files with 307 additions and 2 deletions

View file

@ -21,3 +21,14 @@ QBCore.Commands.Add("deleteshisha", "Lösche deine Shisha und bekomme sie zurüc
Player.Functions.AddItem("shisha", 1)
TriggerClientEvent('QBCore:Notify', source, 'Shisha entfernt und ins Inventar zurückgelegt', 'success')
end)
QBCore.Commands.Add("deleteallshishas", "Delete all placed shishas on the server (Admin Only)", {}, true, function(source)
local Player = QBCore.Functions.GetPlayer(source)
if Player.PlayerData.permission == "admin" or Player.PlayerData.permission == "god" then
TriggerClientEvent("chema_shisha:deleteAll", -1)
TriggerClientEvent('QBCore:Notify', source, 'All shishas have been deleted', 'success')
else
TriggerClientEvent('QBCore:Notify', source, 'You do not have permission to use this command', 'error')
end
end)