Code: Select all
for row = 1, quick_bar_rows do
for _ = 1, 10 do
local slot = player.get_quick_bar_slot(index)
if slot then
items[slot.name] = { target = slot.stack_size }
end
index = index + 1
end
end