I'm trying to learn how to make tables now with a simple talkaction that change the outfit, but I need to know how to get values from the index.
My table is:
local table = {
[1, 5] = {out = 121, e = 2},
[2, 6] = {out = 122, e = 2},
[3, 7] = {out = 123, e = 2},
[4, 8] = {out = 124, e = 2}
}
I'm try to get the vocation info on the index with: table[getPlayerVocation(cid)], but I see that it only work with only one information inside the index.
My question is: How can I make a index with more than one value and how can I get the informations inside?
Thanks in advance.
My table is:
local table = {
[1, 5] = {out = 121, e = 2},
[2, 6] = {out = 122, e = 2},
[3, 7] = {out = 123, e = 2},
[4, 8] = {out = 124, e = 2}
}
I'm try to get the vocation info on the index with: table[getPlayerVocation(cid)], but I see that it only work with only one information inside the index.
My question is: How can I make a index with more than one value and how can I get the informations inside?
Thanks in advance.