I am having trouble with positioning my HUD so it works for 800x600 and 1920x1080 and for 1280x720.
I want a custom chat box and I downloaded one off garrysmord.org as example (Since I am new in doing this)
I searched everywhere but cannot find the answer I am looking for.
How do make the HUD so it doesnt go out of screen when you are at a lower resolution?
On 1900x600 this works fine:
[lua] local x, y = ScrW() * 0.005, ScrH() * 0.55 draw.RoundedBox(5, x, y, 550, 250, Color(25, 25, 25, 255))[/lua]
But when I switch to any other resolution it just messes up (Obviously)
Does anyone have a calculation for me so it will stay in the position I want it to be?