DREFTHUN Posted April 24, 2017 Share Posted April 24, 2017 (edited) Hey guys! I need help with dxDrawText cropping, cause I just can't get it to work. I used these lines of code startXTest = 0 function renderTest() sx, sy = guiGetScreenSize() startXTest = startXTest + sx/1000 if startXTest > sx then startXTest = 0 end dxDrawRectangle(startXTest, sy/2-15,3,30) dxDrawText("Test text please work already", 0, sy/2, startXTest+30, sy/2,tocolor(255,255,255,255),1,"arial","left","center",true,false,false) end addEventHandler("onClientRender", root, renderTest) but the only thing I get is... It should display the text within the line, shouldn't it? What should I do? Please help! Edited April 24, 2017 by DREFTHUN Link to comment
NeXuS™ Posted April 24, 2017 Share Posted April 24, 2017 dxDrawText("Test text please work already", startXTest, sy/2-15, startXTest+3, sy/2+15,tocolor(0,0,0,255),1,"arial","left","center",true,false,false) Try this one. 1 Link to comment
DREFTHUN Posted April 24, 2017 Author Share Posted April 24, 2017 Love you mate Tho you messed it up a little. dxDrawText("Test text please work already", 0, sy/2-15, startXTest, sy/2+15,tocolor(0,0,0,255),1,"arial","left","center",true,false,false) Thanks anyway Liked :DD Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now