Get Player money

Hi, I use the ESX Legacy version and i’m making an inventory hud that includes the cash, I use this code but if I modify the money that I have, the inventory doesen’t update the change of money.

local formattedMoney = _U('locale_currency', ESX.Math.GroupDigits(ESX.GetPlayerData().money))

        table.insert(inventory, {
            name = 'Cash:',
            quantity = ESX.GetPlayerData().money,
            type = 'item_money',
            item = 'money',

If you have any way to fix it, I’d really appreciate it.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.