tBl_Test = { [1001] = {2,4,6,7}, [1002] = {3,1,5,9}, } local Indexid = 1001 local nId = tBl_Test[Indexid][2] print(nId)