local Objects = {}
local Marker = createMarker ( 1784.3134765625,-1925.298828125,12.389979362488, "cylinder", 1.5, 255, 255, 0, 170 )
addEventHandler ( 'onMarkerHit', resourceRoot,
function ( hitElement, matchingDimension )
if getElementType ( hitElement ) == "vehicle" and matchingDimension then
if Objects[hitElement] then destroyElement ( Objects[hitElement] ) end
local x, y, z = getElementPosition ( hitElement )
Objects[hitElement] = createObject ( 1337, x + 1, y + 1, z + 1 )
attachElements ( Objects[hitElement], hitElement, 0, 1, 0.3 )
end
end)