[Help] Display Native Cash

Hey guys!

I’m making a JS resource that is supposed to display the ammount of money a player has and i want to use the native money display thing.

I looked around the forum and found some interesting stuff but i still have a problem that i cant figure out.

This is the code: (testing only for now so the values are hardcoded)

RegisterCommand('add', function() {
    StatSetInt("BANK_BALANCE", 5000, true);
    StatSetInt("MP0_WALLET_BALANCE", 3000, true);
});

As you can see in the video, when I use the /add command, it shows adding both cash and bank but only saves bank (on the ESC menu, bank is 5000 cash is 0, the same on /display command).

Is there a way to make this work or I have to use NUI?

3 Likes

I don’t know if you’re still looking into this but DisplayCash is fine for showing the Bank Balance but to show MP0_WALLET_BALLANCE you have to use ShowHudComponentThisFrame(4);

Least thats how I’m currently doing it, but as for showing the pause menu wallet value, any one got ideas?

1 Like

Ever figure this out? I’m having the same issue… the bank balance will show but MP0_WALLET_BALANCE doesn’t seem to set the cash balance in the pause menu.

I personally gave up on trying and just allowed it to be displayed when requesting multiplyer information (the Z key on GTA:O : example)

dont know if ur still looking but does this native help?

N_0x170f541e1cadd1de(true);
SetMultiplayerWalletCash();
SetMultiplayerBankCash();
N_0x170f541e1cadd1de(false);