Inventoryhud Duplicate cash

Yeah other than using banking to send money, this hud is just broken a little with cash.

Negative. I’ve submitted a PR a while ago that fixed it, if you are getting money issues, get the one from dutchplayers.

i have the same issu but with all item can u help me plz?

1 Like

lmaoo

So I Basically managed to find the solution to this. There is a problem (I don’t know whether it’s an ESX compatibility problem or not), that the developer sets the item.type in the Callback ("esx:removeInventoryItem) to item_money. ESX doesn’t know this type, so it has to be manually set to item_account. I did some reverse engineering, but couldn’t find the right .lua script that handles it. I basically made this changes to ./esx_inventoryhud/client/main.lua:
I changed the NUICallbacks (GiveItem, DropItem, UseItem) and added the following code to it:

	if data.item.type == "item_money" then
		data.item.type = "item_account"
	end

It basically checks if the passed item type is equal to item_money. If so it changes the type to item_account.
I tested it and it works perfectly, but you have to change the config file to:

Config.IncludeCash = true

And

Config.ExcludeAccountsList = {"bank", "money"}

So you don’t see the duplicated money. After making these changes you can use the integrated cash bug free and without it being automatically converted to black money :slight_smile: Hope it helps :slight_smile:

how to addon imace money one normal name cash :smiley:

How to set money in inventory like an item. when we will transfer money just drag move money from inventory in qbcore, thanks all

anyone has a fix on this?

1 Like

car and pressed E horn worked fine