Garry's Mod Wiki

ScrW

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)

Special Pages


Wikis

?

Render Time: 23ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 7
Render Body 0
Render Sidebar 8