Garry's Mod Wiki

ScrW

  number ScrW()

Description

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

Returns

1 number
The width of the game's window in pixels

Example

Prints the width of the screen

print( ScrW() )
Output: 1920 (depends on your resolution)