surface.ScreenHeight

From Garry's Mod
Jump to: navigation, search
 surface.ScreenHeight( )

Contents

Description

This feature is deprecated.
You should avoid using it as it may be removed in a future version.

You should use ScrH instead.

Returns the height of the current client's screen.

Returns

number

screenHeight

Examples

Example

Prints out the current height of the screen.

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

Output:

Screen height: 1080
Personal tools
Navigation