Garry's Mod Wiki

Player:GetDrivingEntity

  Entity Player:GetDrivingEntity()

Description

Gets the entity the player is currently driving via the drive library.

Returns

1 Entity
The currently driven entity, or NULL entity