Garry's Mod Wiki

Revision Difference

Global.SScale#528175

<function name="SScale" parent="Global" type="libraryfunc"> <description> <deprecated>You should be using <page>Global.ScreenScale</page> instead.</deprecated> Returns a number based on the Size argument and your screen's width. Alias of <page>Global.ScreenScale</page>. </description> <file line="6-L10">lua/includes/extensions/client/globals.lua</file>⤶ <realm>Client</realm> <args> <arg name="Size" type="number">The number you want to scale.</arg> </args> </function> <example> <description>Prints a scaled number based on the number 40.</description> <code>print( SScale(40) )</code> <output>105 (This will differ depending on your screen size.)</output> <code>print( SScale( 40 ) )</code> <output>105 (this will differ depending on your screen size)</output> </example>