Garry's Mod Wiki

Garry's Mod Wiki

  GM:GUIMousePressed( number mouseCode, Vector aimVector )

Description

Called whenever a players presses a mouse key on the context menu in Sandbox or on any panel derived from CGModBase, such as the panel used by gui.EnableScreenClicker and the panel used by Panel:ParentToHUD.

See GM:VGUIMousePressed for a hook that is called on all VGUI elements.

Arguments

1 number mouseCode
The key that the player pressed using MOUSE enum.
2 Vector aimVector
A normalized direction vector local to the camera. Internally, this is gui.ScreenToVector( gui.MousePos() ).

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...