forked from Simnation/Main
wd
This commit is contained in:
parent
307f4c0d90
commit
1c16382e41
10 changed files with 307 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue