Garry's Mod Wiki

ScreenScaleH

  number ScreenScaleH( number size )

Description

Returns a number based on the size argument and players' screen height. The height is scaled in relation to 640x480 resolution. This function is primarily used for scaling font sizes.

See ScreenScale for a function that scales from width.

Arguments

1 number size
The number you want to scale.

Returns

1 number
The scaled number based on your screen's height.