Jump to content

Fit DXText to all resolutions [SOLVED]


DRW

Recommended Posts

Posted

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?

tJ5zeFm.gif

Proud owner and developer of ZNEXT: Aftermath.

Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience.

Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. 

Español, Pусский, Türk, عربى, Polski, Português

IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB

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