Garry's Mod Wiki

GM:VGUIMousePressAllowed

  boolean GM:VGUIMousePressAllowed( number button )

Description

Called when user clicks on a VGUI panel.

Arguments

1 number button
The button that was pressed, see Enums/MOUSE

Returns

1 boolean
Return true if the mouse click should be ignored or not.