You might be able to walk beside a farm wagon, but there have been plenty of much faster vehicles since before Roman times.
The most natural way to wave at a passing vehicle to indicate you'd like a ride involves a movement which involves the thumb leading the wave.