I think if you set the vehicles position, it will stop automatically (as in, the speed will be reset to 0).
Try something like this:
player.Vehicle.Pos = player.Vehicle.Pos
I hope this helps! If you have any more questions, please post them in the script help section and somebody should have an answer.