try this
local x = 685.62610
local y = -2692.39307
local z = 7.5
local market = createMarker ( x, y, z, "cylinder", 1.5, 0, 0, 255, 170 )
addEventHandler ( 'onClientMarkerHit', root,
function ( player )
if ( player == localPlayer and source == market ) then
setTimer(setElementPosition, 1000, 1, player, 0, 0, 0 ); --- After 1 second
end
end
)