02.02.2016, 22:21
Uhm. Why wouldn't you want them to be able to enter the car? I am afraid there is no way of detecting if a player wants to enter the driver side of a vehicle, atleast it is what I know, correct me if I am wrong hence why I told you to use OnPlayerStateChange.
Edit: The issue with your code is OnPlayerEnterVehicle is called when a player starts entering a vehicle therefore his state won't be changed to a passenger or a driver, so getplayerstate won't work at all.
Edit: The issue with your code is OnPlayerEnterVehicle is called when a player starts entering a vehicle therefore his state won't be changed to a passenger or a driver, so getplayerstate won't work at all.