Garry's Mod Wiki

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