Lua - car help

Hello all, i do not know if its been done before but i was wandering how would you make a player spawn in a buggy and not be able to get out just when he dies the car gets destroyed and spawns when the player spawns and player starts in it again.

Create a prop_vehicle_jeep, use Player.EnterVehicle, and the PlayerCanExitVehicle hook.