How to ninja-jack someone tutorial:
1. Hold the sprint button
2. Enter a car from the passenger side (keep holding sprint)
3. Driver will get thrown out of the car and instantly die
Works in singleplayer aswell
How to prevent it:
Don't let people carjack you from the passenger side