Jump to content

Moving the text


Sex*

Recommended Posts

Posted

I got a awesome script. But... i need to change it to the right, i already tried something but nothing changed.

I already looked at this: https://wiki.multitheftauto.com/wiki/GuiGetScreenSize but no information that would be useful. Here is what it looks in original.

dxDrawColorText("#ffffff".. messageJoin,30,y/2-20,574.0,20.0,tocolor(200,0,0,255),1,"default-bold","left","top",false,false,false) 
dxDrawImage (10,x/2-20,16,16,"icon/join.png",0,-120) 

Its in the left side now, but i want it to be in the right side.

Posted

Modify the X coordinate to move them to the right:

dxDrawColorText("#ffffff".. messageJoin,x-100,y/2-20,574.0,20.0,tocolor(200,0,0,255),1,"default-bold","left","top",false,false,false) 
dxDrawImage (x-120,x/2-20,16,16,"icon/join.png",0,-120) 

Owner of [HUN]Magyar Play Szerver 1.4, IP: 31.220.43.153:22003

Posted

Maybe it's a problem of the dxDrawColorText function, you can change it to the original dxDrawText and use the colorCoded argument.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Try dxDrawText function with the colorCoded argument.

dxDrawText("#ffffff".. messageJoin,30,y/2-20,574,20,tocolor(200,0,0,255),1,"default-bold","left","top",false,false,false,true) 
dxDrawImage (10,x/2-20,16,16,"icon/join.png",0,-120) 

Please do not PM me with scripting related question nor support, use the forums instead.

Posted

You guys are bullshiting me good :lol::lol: , because i just tried random cordinates with dxdrawcolortext and finally i got it working and now basicly some things more and im finished with it :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...