Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make a inventory system using tables?

Asked by
EthanFins 104
5 years ago

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. pidgey 548 — 5y

Answer this question