G.ScrW

From GMod Wiki

Jump to: navigation, search
Function
Syntax ScrW( )
Where is this used?
Description:
Returns the width of the currently used used viewport (Mostly fits to the screen resolution)
Returns: Number width
Part of Library: Global Functions
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.ScrW]G.ScrW [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints the width of the currently used resolution
Used onNewerClient.png
Code
print("Your resolution width is "..ScrW())
OutputYour resolution width is 1280.

Addition Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox