HUD Resolution Scaling

I’m currently editing a hud for my server. I’m using draw.RoundedBox and making a series of them across the bottom with info in them. It is kind of like the PERP 1 hud. My problem is that they overlap and screw up when my resolution is changed from 1080p to something lower. Is there a way i can get the boxes to scale down to a small size when the resolution is turned down? Thanks.

You should always use ScrW() and ScrH() for huds…Also you can do that when you set the font size, use a calculator and you will get the correct sizes