Glon error

i got this error
Hook ‘LoadPlayer’ Failed: [@lua\includes\modules\glon.lua:349] Unknown type ID, 73!
R
[lua]
require(“glon”)
function LoadInv(ply)

ply.inv = {}
print("Starting to Load")
if file.Exists("Inventory/"..ply:UniqueID()..".txt") then
	print("Loading...")
	local data = glon.decode("Inventory/"..ply:UniqueID()..".txt")
	ply.inv = data
	timer.Simple(3,function(ply)
		print("Sending Items")		
		for k,v in pairs(ply.inv) do
			umsg.Start("LoadInventory",ply)
				umsg.String(k)
				umsg.Long(v)
			umsg.End()	
			print("Item Sent")
		end
	end,ply)
	print("Items Sent")
else
	print("Data not found! Creating Player...")
	ply:SaveInv()
end

end
hook.Add(“PlayerInitialSpawn”,“LoadPlayer”,LoadInv)
function InvMeta:SaveInv()
local writeme = glon.encode(“Inventory/”…self:UniqueID()…".txt")
file.Write(“Inventory/”…self:UniqueID()…".txt", writeme)
print(“player saved”)
end
[/lua]
whats wrong with it?

For starters, you’re calling glon.encode() (at line 29 in your code there) on a string and I don’t think that’s intentional. You’re making a similar error when you call glon.decode() with a string, I think you meant glon.decode(file.Read(“Inventory/”…ply:UniqueID()…".txt")).

Looking at the glon code this makes sense.

ah thank you, i can’t believe i messed that.