mirror of
https://github.com/Michatec/ptelevision.git
synced 2026-03-31 23:46:30 +02:00
Update main.lua
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
Inventory = exports.ox_inventory
|
||||
|
||||
function DumpArray(obj, seen)
|
||||
if type(obj) ~= 'table' then return obj end
|
||||
if seen and seen[obj] then return seen[obj] end
|
||||
@@ -8,4 +6,4 @@ function DumpArray(obj, seen)
|
||||
s[obj] = res
|
||||
for k, v in pairs(obj) do res[DumpArray(k, s)] = DumpArray(v, s) end
|
||||
return res
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user