14.07.2015, 17:39
OnPlayerEnterVehicle gets called when the player presses the key to enter a vehicle. The player is not actually in a vehicle at the point yet and the action can even be aborted. Hence GetPlayerVehicleID returns 0. I Don't know why you would need to use that function, seeing as you have a vehicleid parameter right there at your disposal.

