When you make a hud, how can you make it fit all resolutions?
Use [b][url=wiki.garrysmod.com/?title=G.ScrW]G.ScrW [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] and [b][url=wiki.garrysmod.com/?title=G.ScrH]G.ScrH [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] (screen width and screen height) to make your HUD correctly proportioned.
Okay then you divide and multiply, right?
Sure. Half of the screen's width is simple ScrW() / 2. Five pixels from the bottom of the screen is ScrH() - 5.
Sorry, you need to Log In to post a reply to this thread.