markerData = {
location = '1', {
[1] = { 1216, -1835, 13.4},
[2] = { 1227.7, -1854.6, 13.4},
},
location = '2', {
[1] = { 0, 0, 0},
[2] = { 1227.7, -1854.6, 13.4},
},
location = '3', {
[1] = { 1216, -1835, 13.4},
[2] = { 1227.7, -1854.6, 13.4},
},
}
local selLocation = 2
for _,tab in pairs(markerData) do
if tab['location'] == selLocation then
local x, y, z = markerData[ID][1], markerData[ID][2], markerData[ID][3] -- Problem markerData[ID][1]
end
end