• Scoreboard problem
    6 replies, posted
Solved!
Instead of hardcoded numbers for positions and sizes, use fractions of ScrW() and ScrH(), those functions will return width and height of GMods resolution.
Ok but i tried it and it still cuts it...so what can i do? Little template of how to use those "ScrH and ScrW" maybe i used it wrong.
[QUOTE=Johnny2525;44510905]Ok but i tried it and it still cuts it...so what can i do? Little template of how to use those "ScrH and ScrW" maybe i used it wrong.[/QUOTE] He just told you what to do. For example instead of making something 1000 pixels wide use something like ScrW() * 0.75 which would make it 75% of the screens width.
Something like this: [lua]draw.SimpleText("$" .. v1,"TargetID", 25 + 30,ScrH() - 145, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP) draw.SimpleText("$" .. v2,"TargetID", 25 + 30,ScrH() - 125, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP) draw.SimpleText(LocalPlayer().DarkRPVars.job,"TargetID", 25 + 30,ScrH() - 105, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP) draw.SimpleText(LocalPlayer():Health() ,"TargetID", 25 + 30,ScrH() - 85, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP) draw.SimpleText(LocalPlayer():Armor() ,"TargetID", 25 + 30,ScrH() - 65, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)[/lua]
[QUOTE=StonedPenguin;44510949]He just told you what to do. For example instead of making something 1000 pixels wide use something like ScrW() * 0.75 which would make it 75% of the screens width.[/QUOTE] Thanks for that expample. And sorry for being so stupid, it was easier that i thought it'll be
Next time please don't delete your original post as it might be indexed by Google so people can find your post and use it as a solution for their own problems.
Sorry, you need to Log In to post a reply to this thread.