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

Page Links


Special Pages


Wikis

?

Render Time: 82ms

DB GetPage 42
Generate Html 1
SaveChanges (1) 25
Render Body 0
Render Sidebar 12