Well, the sprinting part is easy, just use
setPedControlState
but the only thing about those is, when you want them to do it, which would make it hard because you would use either timers, but for the vehicle thing, I suggest using the traffic sys.
If you want, you could even look in the traffic sys and see how they do it.