UsErFaiLed Posted December 1, 2013 Share Posted December 1, 2013 Hello guys I would like to know how I let dxDrawText in all resolutions in the same place that resolution at home she goes to a local who can help me? Google Translator I know I have to use this function: guiGetScreenSize() function Money() dxDrawText("Money", 377, 196, 683, 246, tocolor(0, 0, 0, 255), 2.00, "pricedown", "center", "center", true, true, true, true, false) end addEventHandler ( "onClientRender",root,Money) Link to comment
Castillo Posted December 1, 2013 Share Posted December 1, 2013 local sx, sy = guiGetScreenSize ( ) local resX, resY = 0, 0 -- Put the resolution used to draw it here. function Money ( ) dxDrawText ( "Money", ( 377 / resX ) * sx, ( 196 / resY ) * sy, 683, 246, tocolor(0, 0, 0, 255), 2.00, "pricedown", "center", "center", true, true, true, true, false ) end addEventHandler ( "onClientRender", root, Money ) Try it. 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