[Release][ESX] Inventory HUD - 2.4 (properties, trunks, players, shops, storages ...)

didnt work at all :frowning: i cant find

function OpenBodySearchMenu(player)
TriggerEvent(“esx_inventoryhud:openPlayerInventory”, GetPlayerServerId(player), GetPlayerName(player))
end

esx_policejob
client
main.lua
ctrl + f - find - function OpenBodySearchMenu(player)

Go into your locals file en

And use this code in the correct area.

[‘used_cupcake’] = ‘You’ve eaten a Cupcake’,

function OpenBodySearchMenu(player)

	ESX.TriggerServerCallback('esx_policejob:getOtherPlayerData', function(data)

		local elements = {}

		for i=1, #data.accounts, 1 do

			if data.accounts[i].name == 'black_money' and data.accounts[i].money > 0 then

				table.insert(elements, {
					label    = _U('confiscate_dirty', ESX.Math.Round(data.accounts[i].money)),
					value    = 'black_money',
					itemType = 'item_account',
					amount   = data.accounts[i].money
				})

				break
			end

		end

i cannot find this line

function OpenBodySearchMenu(player)
TriggerEvent(“esx_inventoryhud:openPlayerInventory”, GetPlayerServerId(player), GetPlayerName(player))
end
1 Like

Read the wiki properly. You don’t have to find that line lmao

that function u highlighted, delete it, and paste the code i sent, but u need to remove all the function not just that little bit you posted, and yes you really should have followed the wiki

so i need delete this all this code

function OpenBodySearchMenu(player)

	ESX.TriggerServerCallback('esx_policejob:getOtherPlayerData', function(data)

		local elements = {}

		for i=1, #data.accounts, 1 do

			if data.accounts[i].name == 'black_money' and data.accounts[i].money > 0 then

				table.insert(elements, {
					label    = _U('confiscate_dirty', ESX.Math.Round(data.accounts[i].money)),
					value    = 'black_money',
					itemType = 'item_account',
					amount   = data.accounts[i].money
				})

				break
			end

		end

then replace with this code right ?

function OpenBodySearchMenu(player)
TriggerEvent(“esx_inventoryhud:openPlayerInventory”, GetPlayerServerId(player), GetPlayerName(player))
end
1 Like

all the function, not just that, every function has and a closing end, line: 945 > line: 1014 is what you should be deleting on normal esx_policejob, the lines will be diffrent if uv edited the script in anyway, look for the line - function OpenBodySearchMenu(player) and then find the closing end, its around 70 lines of code

1 Like

How can i rename the parachute, its not like all the others… the only one i am missing

parachute.png
PICKUP_PARACHUTE.png
GADGET_PARACHUTE.png

its in the ressources, the picture respect the specs… 128x128 translucide background made with gimp.

When trying to esx property support with Inventory HUD. After entering the apartment and selecting Property Inventory, turn off the menu and nothing happens. Inventory HUD does not turn on. No errors under F8 or in the console. I did it step by step like a wiki page. Any help?

may i see ur client/main.lua ? i just try it but did work

Would be to hard to add specific inventory slots and increase the total slot count? (when empty for example)
so you can organize items by drag and drop inside the inventory

add stock inventory in police job ?

Hello there! Awesome release. Is there a way to have 2 same weapons in separate slots? Like, 2 pistols using 2 slots in the inventory?

2 Likes

Anyone sorted the issue with police not being able to take weapons if they already have it in their inventory?

i suggested a temp fix earlier in the thread,

How to get KG in inventory ? image

^ Yeah, I would like to know that too. I was trying to implement that by myself but no success :confused:

Would thanks for the great work you made for us first, But I do think if i can download the previous version which i think the UI and the right click feature is way better then the latest one (no offence just personal opinion). Can I get the previous version somewhere lol

nice release