Jump to content

Money


Matevsz

Recommended Posts

  • Moderators

@Matevsz

If you don't understand shaders, make it with dx as the other guys say.

Now please post your code. (after your wrote it...)

[url=https://wiki.multitheftauto.com/wiki/DxDrawText]https://wiki.multitheftauto.com/wiki/DxDrawText[/url] 
[url=https://wiki.multitheftauto.com/wiki/OnClientRender]https://wiki.multitheftauto.com/wiki/OnClientRender[/url] 
[url=https://wiki.multitheftauto.com/wiki/DxSetAspectRatioAdjustmentEnabled]https://wiki.multitheftauto.com/wiki/Dx ... entEnabled[/url] 
[url=https://wiki.multitheftauto.com/wiki/ShowPlayerHudComponent]https://wiki.multitheftauto.com/wiki/Sh ... dComponent[/url] 
[url=https://wiki.multitheftauto.com/wiki/GetPlayerMoney]https://wiki.multitheftauto.com/wiki/GetPlayerMoney[/url] 
[url=https://wiki.multitheftauto.com/wiki/GuiGetScreenSize]https://wiki.multitheftauto.com/wiki/GuiGetScreenSize[/url] 

I gave you everything you need, try the code yourself.

Don't start crying that you can't try it, because you will end up in my foes group and you won't get help from me any more. :evil:

Link to comment

try this

function convertNumber ( number )   
    local formatted = number   
    while true do       
        formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')     
        if ( k==0 ) then       
            break   
        end   
    end   
    return formatted 
end 
  
local money = getPlayerMoney(getLocalPlayer()) 
dxDrawText("R$: "..convertNumber(money), x*0.827, y*0.150, x*800, y*030, tocolor(255, 255, 255,255), 0.7, "bankgothic", "left", "top", false, false, true, false, false) 
  

Look hud :wink::wink:

F3aW0fa.png

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