ScrW

From Garry's Mod
Jump to: navigation, search
 ScrW( )

Contents

Description

Gets the width of the game's window (in pixels).

Returns

number

The width of the game's window in pixels

Examples

Example

Prints the width of the screen

print( ScrW() )

Output:

1280 (depends on your resolution)
Personal tools
Navigation