Garry's Mod Wiki

gui.SetMousePos

  gui.SetMousePos( number mouseX, number mouseY )

Description

We advise against using this. It may be changed or removed in a future update. Use input.SetCursorPos instead.

Sets the cursor's position on the screen, relative to the topleft corner of the window

Arguments

1 number mouseX
The X coordinate to move the cursor to.
2 number mouseY
The Y coordinate to move the cursor to.