GTA V Default money hud

Hello,

I am developing a framework right now, I have created the backend economy to it and was wondering if there is a way to use the default GTA V online money HUD. I’m trying to use this instead of creating a Nui HUD for the time being. Does anyone have any ideas on how I could go about this? Also, possibly using the money notifications.

Right now from my understanding
I have to use MP0_WALLET_BALANCE in ```
StatSetInt(
statName --[[ Hash ]],
value --[[ integer ]],
save --[[ boolean ]]
)

Then display the HUD using this code snippet
// Code to show both Money and Bank HUD
N_0x170f541e1cadd1de(true);
SetMultiplayerWalletCash();
SetMultiplayerBankCash();
N_0x170f541e1cadd1de(false);

// Add a delay to let the player read his money
await Delay(5000);

// Hide both Bank and Money HUD
RemoveMultiplayerWalletCash();
RemoveMultiplayerBankCash();

Now How do I use the notification that will alert players that there balances have been modified?
1 Like

i think GTA will do that automatically when you change the money

--those could be called once, and it will show the cash and bank on the screen.
ShowHudComponentThisFrame(3) -- Enable this line if you want to display the native player CASH
ShowHudComponentThisFrame(4) -- Enable this line if you want to display the native player BANK amount
StatSetInt('MP0_WALLET_BALANCE', _cash, true) --this SETS () the "cash" value
StatSetInt('BANK_BALANCE', _bank, true)--this SETS () the "bank" value

If a value is changed, the UI will automatically appear on screen, with the final value, and the amount that was added / removed.

3 Likes

does anyone know how to make it so the gta money and bank hud doesnt show up at all?