surface.ScreenWidth

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

Contents

Description

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

You should use ScrW instead.

Returns the width of the current client's screen.

Returns

number

screenWidth

Examples

Example

Prints out the current width of the screen.

MsgN("Screen width: " .. surface.ScreenWidth())

Output:

Screen width: 1920
Personal tools
Navigation