-- Declare a table with for statement local _Items = {} for i=1, 5 do _Items[i] = vci.assets.GetSubItem("Item"..tostring(i)) print("Registered ".._Items[i].. "in the table.") end