Jump to content

Help Script dxDrawText


UsErFaiLed

Recommended Posts

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
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

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...