This function gets the ID of the vehicle the player is currently in. Note: NOT the model id of the vehicle. See GetVehicleModel for that.
|playerid||The ID of the player in the vehicle that you want to get the ID of|
ID of the vehicle or 0 if not in a vehicle
// Add 10x Nitro if the player is in a car. Might be called on a command.
vehicleId = GetPlayerVehicleID(playerid);
if (vehicleId != 0)