Update main.lua

This commit is contained in:
Pickle
2022-10-30 05:17:15 -04:00
committed by GitHub
parent 6b49ca735a
commit 93d0ae3c9a

View File

@@ -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