Garry's Mod Wiki

Player:GetVehicle

  Vehicle Player:GetVehicle()

Description

Returns the vehicle the player is driving.

Returns

1 Vehicle
The vehicle the player is currently driving, if any.

Returns NULL entity if the player is not driving.