Garry's Mod Wiki

surface.ScreenHeight

surface.ScreenHeight

  number surface.ScreenHeight()

Description

We advise against using this. It may be changed or removed in a future update. You should use ScrH instead.

Returns the height of the current client's screen.

Returns

1 number
screenHeight

Example

Prints out the current height of the screen.

MsgN("Screen height: " .. surface.ScreenHeight())
Output: Screen height: 1080

Special Pages


Wikis

?

Render Time: 105ms

DB GetPage 32
Generate Html 2
SaveChanges (1) 62
Render Body 0
Render Sidebar 7