GMS.Resources = {} function GMS.RegisterResource( tbl ) local sname = string.Replace(tbl.Name, " ", "_") print("Registering " .. sname) GMS.Resources[sname] = tbl end function GMS.GetItemByName(name) if(GMS.Resources[name]) then return GMS.Resources[name] else print("Resource " .. name .. " does not exist! This might be a bug!") end end