Garry's Mod Wiki

Revision Difference

Global.ScrW#545868

<function name="ScrW" parent="Global" type="libraryfunc"> <description>Gets the width of the game's window (in pixels).</description> <realm>Client and Menu</realm> <rets> <ret name="" type="number">The width of the game's window in pixels</ret> </rets> </function> <example> <description>Prints the width of the screen</description> <code>print( ScrW() )</code> <output>1280 (depends on your resolution)</output> <output>1920 (depends on your resolution)</output> </example>