Garry's Mod Wiki

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)

Page Links


Special Pages


Wikis

?

Render Time: 31ms

Session 0
DB GetPage 3
Generate Html 2
SaveChanges 12
Render Body 0
Render Sidebar 12