Garry's Mod Wiki

gui.MousePos

  number, number gui.MousePos()

Description

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

Returns the cursor's position on the screen, or 0, 0 if cursor is not visible.

Returns

1 number
mouseX
2 number
mouseY