Garry's Mod Wiki

gui.EnableScreenClicker

  gui.EnableScreenClicker( boolean enabled )

Description

Enables the mouse cursor without restricting player movement, like using Sandbox's context menu. See vgui.CursorVisible for a function to see if the cursor is visible or not.

Some CUserCmd functions will return incorrect values when this function is active because the user input is getting overtaken by the vgui system.

Arguments

1 boolean enabled
Whether the cursor should be enabled or not. (true = enable, false = disable)