ed
This commit is contained in:
parent
ec9ff993e4
commit
a0b81a2e66
2 changed files with 61 additions and 16 deletions
|
@ -140,3 +140,17 @@ function redeemPfand(selectedItems)
|
|||
ShowNotification(_L('processing'))
|
||||
TriggerServerEvent('pickle_consumables:server:redeemPfand', selectedItems)
|
||||
end
|
||||
|
||||
-- modules/pfandsystem/client.lua (zusätzlicher Code)
|
||||
|
||||
-- Überwache Item-Nutzung
|
||||
RegisterNetEvent('inventory:client:UseItem')
|
||||
AddEventHandler('inventory:client:UseItem', function(item)
|
||||
local itemName = type(item) == "table" and item.name or item
|
||||
TriggerServerEvent('pickle_consumables:server:useItem', itemName)
|
||||
end)
|
||||
|
||||
-- Überwache Pickle Consumables Item-Nutzung
|
||||
AddEventHandler('pickle_consumables:useItem', function(itemName, slot)
|
||||
TriggerServerEvent('pickle_consumables:server:useItem', itemName)
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue