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

So i find the solution.
As i said and you too, problem was in esx_addoninventory, defaultly there is “Items”, but most of sql commands prepared by someone else, creat db with name “items”, so you have to change. addoninventory.lua - line 39

Now everything is working awesomely, even shared invs fe. police.
Only detail thats littlebit bothering me is this. (items inside property inv are called undefined.)

any ideas ? DB addon_inventory_items look works allright.

Replace your esx_addoninventory with this one and it should work fine.
esx_addoninventory.rar (83.8 KB)

has anyone got the fix to make the police search work with esx_inventoryhud ? so police can see peoples weapons?

1 Like

I have been trying to get this to work for ages. I can get it all to open and work but i cant get the bank account, black money, cash or job role can anyone advise me how i do this.

Anyone worked out how to have multiple items when stealing from other players? or just in general?

I find that using ESX_Thief is the best when it comes to stealing from players and it works really well with the inventoryHUD and updates instantly but the only issue is that you can’t take weapons that you already own OR items that you have already stacked to their max.

anyone found a fix/work around for this?

@KlykPL

There is the fix;

thank you sir! working!

1 Like

can any tell me why i cant drag and use a weapon from the inventory hud thanks

hi i have visual problem, anyone cant see all my weapons!

she see my body

What I really have.

This also happened to me if the police used “confiscate” in some people

@ShinxD
Bro try if u have this;

Thank you very much for replying quickly.

just add the code

 if weapons[key].name ~= "WEAPON_UNARMED" then

What does green shading say?

@ShinxD
No hay de que.

ive added this to my server and when i press F2 it lock my screen up and i cant close the inventory can anyone help please

1 Like

Working fine so far, already customized it for my server (icons for the items will come later :sweat_smile:)

hi all, i use this script and adapted for use inventory hud

but have error before revive player duplicate items


someone can help me with this pls "sorry my bad english "

this is my .lua

local Keys = {
  ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57, 
  ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSPACE"] = 177, 
  ["TAB"] = 37, ["Q"] = 44, ["W"] = 32, ["E"] = 38, ["R"] = 45, ["T"] = 245, ["Y"] = 246, ["U"] = 303, ["P"] = 199, ["["] = 39, ["]"] = 40, ["ENTER"] = 18,
  ["CAPS"] = 137, ["A"] = 34, ["S"] = 8, ["D"] = 9, ["F"] = 23, ["G"] = 47, ["H"] = 74, ["K"] = 311, ["L"] = 182,
  ["LEFTSHIFT"] = 21, ["Z"] = 20, ["X"] = 73, ["C"] = 26, ["V"] = 0, ["B"] = 29, ["N"] = 249, ["M"] = 244, [","] = 82, ["."] = 81,
  ["LEFTCTRL"] = 36, ["LEFTALT"] = 19, ["SPACE"] = 22, ["RIGHTCTRL"] = 70, 
  ["HOME"] = 213, ["PAGEUP"] = 10, ["PAGEDOWN"] = 11, ["DELETE"] = 178,
  ["LEFT"] = 174, ["RIGHT"] = 175, ["TOP"] = 27, ["DOWN"] = 173,
  ["NENTER"] = 201, ["N4"] = 108, ["N5"] = 60, ["N6"] = 107, ["N+"] = 96, ["N-"] = 97, ["N7"] = 117, ["N8"] = 61, ["N9"] = 118
}


ESX                           = nil

local PlayerData = {}

--function playAnim(animDict, animName, duration)
--	RequestAnimDict(animDict)
	--while not HasAnimDictLoaded(animDict) do Citizen.Wait(0) end
	--TaskPlayAnim(PlayerPedId(), animDict, animName, 1.0, -1.0, duration, 49, 1, false, false, false)
	--RemoveAnimDict(animDict)
--end









Citizen.CreateThread(function()
	while ESX == nil do
		TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
		Citizen.Wait(0)
	end

	while ESX.GetPlayerData().job == nil do
		Citizen.Wait(10)
	end

	PlayerData = ESX.GetPlayerData()
end)

Citizen.CreateThread(function()
	while true do

		Citizen.Wait(0)
		if IsControlJustReleased(0, Keys['Z']) then
	
            local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
			
            if IsPlayerDead(closestPlayer) then 
                if closestPlayer ~= -1 and closestDistance <= 1 then

                    OpenBodySearchMenu(closestPlayer) 
					--playAnim('anim@heists@money_grab@duffel', 'loop',8000) 
                end
            end
		end
	end
end)


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

This isn’t working with my property inventory, guns and dirty money are inserted but items are deleted from existence.

I could spend hours figuring it out, but before I do that; does anyone have a fix for this issue? It’d be nice to actually utilize the inventory and all…

Check your server. Do you have any errors when you add the items in.

has any 1 got a fix for being able to drap a weapon to use icon and him pull it out of his inventory ?
i dont really wanna use scroll wheel on mouse i would rather be able to equip through the inventory menu

ive added food to my stores also and when ive purchased and go into my inventory it does not let me use the item i added… have i installed something wrong cause only things that work are my bread and water plus the lock pick i installed

ive added this to my server and when i press F2 it lock my screen up and i cant close the inventory can anyone help please

can anyone help i done everything else and got it working but i cant get the police search too work.

I cant understand what it means by this part and were its supposed to go.

From server:

TriggerClientEvent("esx_inventoryhud:openPlayerInventory", sourcePlayer, targetPlayer, targetPlayerName)

From client:

TriggerEvent("esx_inventoryhud:openPlayerInventory", targetPlayer, targetPlayerName)

and everytime i do this it breaks the whole script?

esx_policejob example

  1. Open esx_policejob/client/main.lua
  2. Find function OpenBodySearchMenu and remove it.
  3. Add this code: