Garry's Mod Wiki

gui.MousePos

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

Special Pages


Wikis

?

Render Time: 46ms

DB GetPage 27
Generate Html 3
SaveChanges (1) 7
Render Body 0
Render Sidebar 6