while true do
    Wait(0)
    if IsPedJumping(PlayerPedId()) then
        local firstCoord = ...
        while IsPedJumping () do
            Wait (0)
        end
        local secondCoords = ...
        local distance = ...
        if distance > 10.0 then
            ...
        end 
end

I guess doing so may work. Can’t help much I’m on phone (you will have to fill the code but I hope you get the idea).