forked from Simnation/Main
Update server.lua
This commit is contained in:
parent
ce0e35b744
commit
596e1b304d
1 changed files with 0 additions and 15 deletions
|
@ -124,18 +124,3 @@ AddEventHandler('pickle_consumables:itemUsed', function(source, itemName, itemDa
|
||||||
TriggerEvent('pickle_consumables:server:useItem', itemName)
|
TriggerEvent('pickle_consumables:server:useItem', itemName)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Debug-Code, um alle Events zu überwachen
|
|
||||||
AddEventHandler('*', function(eventName, ...)
|
|
||||||
if string.find(eventName:lower(), "item") or string.find(eventName:lower(), "consume") or string.find(eventName:lower(), "use") then
|
|
||||||
print("Event ausgelöst: " .. eventName)
|
|
||||||
local args = {...}
|
|
||||||
for i, arg in ipairs(args) do
|
|
||||||
print(" Arg " .. i .. ": " .. tostring(arg))
|
|
||||||
if type(arg) == "table" then
|
|
||||||
for k, v in pairs(arg) do
|
|
||||||
print(" " .. tostring(k) .. ": " .. tostring(v))
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue