Hey, I would like to scale my HUD and I have a surface material and a simpletext wallet for darkrp, I would like the material move left everytime money was added as in they stay together and the money doesn't over layered the matieral.
[CODE] surface.SetDrawColor( 255, 255, 255, 255 )
surface.SetMaterial( creditsal )
surface.DrawTexturedRect( (ScrW()/4)-12, ScrH()-89, 20, 20 )
draw.SimpleText( DarkRP.formatMoney( wallet ), "TekisFont2", ScrW()/3-105, ScrH()-80, color.white, 1, 1 )[/CODE]
Then alignt it properly.
Do maths, use surface.GetTextSize.
Just do TEXT_ALIGN_LEFT and that will keep the leftmost part of your text at the position you set for it.
EDIT:
Or just change the first "1" at the end of your draw.SimpleText to a "0" and remove the second "1"
EDIT 2:
You'll also have to change your position that you set but once you do, it shouldn't overlap your material.
Sorry, you need to Log In to post a reply to this thread.