no, your problem is something entirely different as that only depends on map positions and restrictions
No, I just want it so that the player doesn't leave the vehicle when a button is pressed.
That is something entirely different from what your first post said.
First you said that you only want to leave the vehicle on changing maps - which is a problem in itself and would require a much better description
And now you said that the player should not be able to leave the vehicle while a button is pressed? So if the player stops pressing the button he should be able to leave again?
Your descriptions make absolutely no sense, and no one can help you with such short and irregular sentences.
Please describe what you want to happen in details and in ingame terms - and ate least several sentences instead of abbreviated hints.