11-27-2016, 06:24 AM
Wouldn't something like this work?:
local g_ItemData = {} function cItem:SaveData(key, data) local storage = g_ItemData[self] or {} storage[key] = data; g_ItemData[self] = storage end function cItem:GetData(key) return (g_ItemData[self] or {})[key] endOr would it have the same problem as the third option?