Garry's Mod Wiki

Player:GetEntityInUse

  Entity Player:GetEntityInUse()

Description

Returns the entity the player is currently using, like func_tank mounted turrets or +use prop pickups.

Returns

1 Entity
Entity in use, or NULL entity otherwise. For +use prop pickups, this will be NULL clientside.