veicletestdrive = {}
addEvent("testdrive", true)
addEventHandler("testdrive", getRootElement(),
function(player,veicleid)
veicletestdrive[player] = createVehicle(veicleid,-2422.01147, -605.47894, 132.56250)
warpPedIntoVehicle(player, veicletestdrive[player])
setTimer(function(player)
removePedFromVehicle(player)
destroyElement(veicletestdrive[player])
setElementPosition(player, -2412.01294, -596.52393, 132.64844)
end, 30000, 1, player)
end
)
Try this code