Hello! how can I know how many items are in a table?
I would like to know how many items are in my table, only the number
local inventory = {obj_1, obj_2, obj_3}
I want to do something like that
if inventory == 3 then
print("There are ".. → 3 items) --example
elseif inventory == 0
print("There are no items")
end