Thank you, can you help me little make a some example how i can take information about tables.
Example:
local ranks = {
{"Criminal", "Street Rat", 0},
{"Criminal", "Mugger", 100},
{"Police", "Trainee", 0},
{"Police", "Officer", 100}
}
ranks [ 1 ] -- {"Criminal", "Street Rat", 0}
ranks [ 2 ] -- {"Criminal", "Mugger", 100}
ranks [ 3 ] -- {"Police", "Trainee", 0}
-- etc..
Note: This example should not be tested as it is just for clarifying how this works, and it will show an error as soon as you run it.
Another example:
local foo = { "bar", "baz", "anything" }
outputChatBox ( foo [ 1 ] ) -- bar
outputChatBox ( foo [ 2 ] ) -- baz
outputChatBox ( foo [ 3 ] ) -- anything
This is fine to be tested.
Read more about Lua tables here: http://lua-users.org/wiki/TablesTutorial