Garry's Mod Wiki

Player:GetPressedWidget

  Entity Player:GetPressedWidget()

Description

Returns the widget entity the player is using.

Having a pressed widget stops the player from firing their weapon to allow input to be passed onto the widget.

Returns

1 Entity
The pressed widget.