I have tried many methods with making an inventory system I have found one using string.sub but this method is less affective and I would like to know more about making a table inventory.
COMMUNITY QUESTION
How do you make a inventory system using tables?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Use the table index's as the slot in which the item the inventory holds. The value that index holds would be more data (another table for example). Could look something like this: inventory = {[1] = {name = "gun"}} whereas slot 1 of the inventory holds data with key 'name' serving a purpose. Try to post some code and we'll tell you where you go wrong if you're having trouble.