_Marco_ Posted February 21, 2023 Share Posted February 21, 2023 How can I use the following table values? Items = { One = { [7] = 1000, [13] = 2000, }, Two = { [411] = 3000, [434] = 4000, }, Three = { [1001] = 5000, }, Four = { Gate = 6000, Base = { ["First"] = 100000, ["Last"] = 200000, }, }, Five = { ["Vehicle"] = 411, }, } Link to comment
Xwaw Posted February 21, 2023 Share Posted February 21, 2023 U tried Items[1][7] for example where [1] is index of first table and [7] is index for second table? 1 Link to comment
alex17" Posted February 21, 2023 Share Posted February 21, 2023 local model = Items.Five["vehicle"] createVehicle(model, ...) local objectID = Items.Four.Gate local first = Items.Four.Base["First"] local last = Items.Four.Base["Last"] createObject(ObjectID, ...) 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now