surface.ScreenWidth

From Garry's Mod
Revision as of 19:18, 9 June 2015 by Code gs (Talk | contribs)
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 Global:ScrW instead.

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