Well I tried using keyvaluestotable like this
local stuff = util.TableToKeyValues({12, 13 14})
local stuff2 = util.KeyValuesToTable(stuff)
When I do
PrintTable(stuff2)
Works fine, shows things like
1 = 12
2 = 13
3 = 14
Which is what I want but when I do
print(stuff2[1])
It just prints nil
So then I tried Glon so I went about it the same way
local stuff = glon.encode({12, 13, 14})
local stuff2 = glon.decode(stuff)
which worked fine except when I used file.Write and file.Read I get a new error
Invalid number at 1! (“12”)
which is because it’s turned into a string now but this is how its done on the wiki so I don’t get it.
I think Glon is the way I need to go but there is another problem even if the above gets fixed, when encoding an entities table it seems glon does not like functions,
“Tried to write unwriteable type: function”