Garry's Mod Wiki

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

Page Links


Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 4
Generate Html 4
SaveChanges (1) 9
Render Body 0
Render Sidebar 12