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: 1280 (depends on your resolution)

Special Pages


Wikis

?

Render Time: 50ms

DB GetPage 34
Generate Html 1
SaveChanges (1) 5
Render Body 0
Render Sidebar 7