How to add values to list

Hello! I would like to know how to create a list and add values ​​to that list as follows:

An example would be to have an inventory, in each box of the inventory it is represented with the index of the list, If I want to add values ​​from my to my inventory list, how can I do it?

flow graph
inventory list → object list → add object list to inventory list

Any idea how to do that? i am not sure at all :open_mouth:

I am very grateful to those who help me to generate the right ideas, please.

1 Like
table.insert(inventoryList, objectList[itemIndex]);
1 Like

Thanks you so much! :smiley: good night