Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...