• HUD Text
    4 replies, posted
How would i get a [LUA]draw.DrawText[/LUA] to align perfectly in teh middle of the screen instead of the left or right? EDIT: Never mind this can be locked I just used [LUA](ScrW() - (ScrW() * 0.5)) - 50[/LUA]
text_allign_centre?
[QUOTE=mil0001;34351653]text_allign_centre?[/QUOTE] I tried It didnt work, I dont know why.
[QUOTE=JeffDOA;34361807]I tried It didnt work, I dont know why.[/QUOTE] That's because the British English spelling of the word "center" isn't what the enumeration is called and the enumeration must be upper-case. Should create what you need: [lua] draw.DrawText("I need to actually read the wiki.", "HUDNumber5", ScrW() / 2, ScrH() / 2, Color(255, 0, 0, 255), TEXT_ALIGN_CENTER) [/lua]
[QUOTE=wizardsbane;34362748]That's because the British English spelling of the word "center" isn't what the enumeration is called and the enumeration must be upper-case. Should create what you need: [lua] draw.DrawText("I need to actually read the wiki.", "HUDNumber5", ScrW() / 2, ScrH() / 2, Color(255, 0, 0, 255), TEXT_ALIGN_CENTER) [/lua][/QUOTE] I did use it exactly the way did...
Sorry, you need to Log In to post a reply to this thread.