• ScrH() for HUD
    3 replies, posted
Hi everyone. I'm currently working on a HUD and I have a question. How do I make something appear in the top left of the screen (for example text) and it will work on every resolution. I tried doing ScrH() / 31 -- or whatever and I looked around a bit, but could find nothing. Any answers are appreciated!
The top left of the screen is (0,0), the bottom right of the screen (ScrW(),ScrH()).
Thank you brandon, my god I feel like an idiot.
[lua] draw.SimpleText( "o hi ther", "Trebuchet18", 4, 4, Color( 255, 255, 255, 255 ), 0, 0 ) [/lua] This will draw "o hi ther" at the top left of a client's screen.
Sorry, you need to Log In to post a reply to this thread.