stop entity driving?

So I am making a few addons that have to do with vehicles and i was wondering the best way to stop a vehicle from accelerating. I want the vehicle to slow down gradually to a stop (as if you took your finger off off the accelerate key) and for the player to be able to turn in different directions while slowing down. What should i do to perform this?