DarkRP HUD Problems

Hello. I recently made a HUD for the DarkRP gamemode for Garry’s Mod.

So my problem is that my HUD works perfectly in my resolution. It’s all placed right and works how I want it to. (1280 x 720)

When I change my resolution to a higher resolution, it gets distorted.

Here is some of the code:



draw.RoundedBox(0, ScrW() -500, ScrH() -40, 500, 25, Color(40,40,40,245))
draw.RoundedBox(0, ScrW() -1280, ScrH() -40, 500, 25, Color(40,40,40,245))
draw.RoundedBox(0, ScrW() -1260, ScrH() -33, 200, 10, Color(80,80,80,245))
draw.RoundedBox(0, ScrW() -1000, ScrH() -33, 200, 10, Color(80,80,80,245))
draw.RoundedBox(0, ScrW() -575, ScrH() -700, 2000, 25, Color(40,40,40,245))
draw.RoundedBox(0, ScrW() -2700, ScrH() -700, 2000, 25, Color(40,40,40,245))


hey, i had the same problem instead of using ScrW() just use 10, 10 instead in like an example