Jump to content

Fit DXText to all resolutions [SOLVED]


DRW

Recommended Posts

EDIT: Forget about this, it was a script problem, not a DXText one. Solved

function drawText() 
    local playerCoins = getPlayerCoin(getLocalPlayer()); 
    local gPlayerCoins = string.format("%08d", playerCoins); 
         
    dxDrawText("ZP: "..gPlayerCoins, x*795, y*698, x*973, 198, tocolor(0, 0, 0, 255), size, "pricedown", "left", "top", false, false, false, false, false); 
    dxDrawText("ZP: "..gPlayerCoins, x*795, y*702, x*973, 198, tocolor(0, 0, 0, 255), size, "pricedown", "left", "top", false, false, false, false, false); 
    dxDrawText("ZP: "..gPlayerCoins, x*800, y*700, x*973, 196, tocolor(0, 0, 0, 255), size, "pricedown", "left", "top", false, false, false, false, false); 
    dxDrawText("ZP: "..gPlayerCoins, x*795, y*702, x*971, 198, tocolor(0, 0, 0, 255), size, "pricedown", "left", "top", false, false, false, false, false); 
    dxDrawText("ZP: "..gPlayerCoins, x*800, y*698, x*971, 198, tocolor(0, 0, 0, 255), size, "pricedown", "left", "top", false, false, false, false, false); 
    dxDrawText("ZP: "..gPlayerCoins, x*796, y*700, x*971, 196, tocolor(0, 0, 0, 255), size, "pricedown", "left", "top", false, false, false, false, false); 
    dxDrawText("ZP: "..gPlayerCoins, x*797, y*700, x*972, 197, tocolor(0,252,151, 200), size, "pricedown", "left", "top", false, false, false, false, false); 
     
end 
addEventHandler("onClientRender", root, drawText) 

I want to fit this text to the bottom right corner, but I don't know how, how can I do that?

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