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.
0
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.pidgey548— 5y