Hi, will you try this
local markers = {};
addCommandHandler("test", function()
mark = createMarker(-106.93572235107, -1150.2275390625, 1.0437397956848-1, "cylinder", 4.0, 53, 151, 255, 45);
markers[mark] = #markers + 1;
mark = createMarker(-129.19007873535, -1202.5013427734, 2.1060457229614, "cylinder", 4.0, 53, 151, 255, 45);
markers[mark] = #markers + 1;
mark = createMarker(-142.54978942871, -1272.1796875, 2.1073033809662, "cylinder", 4.0, 53, 151, 255, 45);
markers[mark] = #markers + 1;
end);
addEventHandler("onClientMarkerHit", root, function()
if markers[source] then
outputChatBox(markers[source]);
destroyElement(source);
markers[source] = nil;
end
end);
Should be working, been a while since I edited MTA Lua