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

R.i.p i miss inventory hub was a awesome project.

How to install if you still have the file

  • Open es_extended , then find and remove this code in client/main.lua :
-- Menu interactions
Citizen.CreateThread(function()
	while true do

		Citizen.Wait(0)

		if IsControlJustReleased(0, Keys['F2']) and IsInputDisabled(0) and not isDead and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
			ESX.ShowInventory()
		end

	end
end)

Read above for how to make it work with property

2 Likes

You Sir, are a legend. Thankyou for posting this. I had to rebuild my server and this was one of the few things that got rolled back. Life saver. Nice one.

(2020) Download extended version here: GitHub - RuisSoftware/FiveM-Resources-2024: I make mods for FiveM.

features

  • Drag and drop
  • Using items
  • Dropping items
  • Giving items
  • Item hotbar
  • Use item by 1-5 key
  • Accounts support (bank, black money, …)
  • Weapons and ammunition clips as item
  • Configurable shops in config (police, nightclub, blackmarket, weapons)
  • Property support (esx_property)
  • Motels support (lsrp-motels)
  • Trunk support (integrated)
  • Glovebox support (integrated)
  • Bag support (integrated)
  • Pocket support (integrated)
  • Another players inventory support (rob somebody)
  • Fully configurable (check config.lua and html/js/config.js)
  • Multiple languages supported (check locales/ and html/locales/ directories)
  • Multiple styles
9 Likes

Hey, when I modify esx_policejob, it works but I when I search another player, I can only give and take weapons from him. I cannot take a phone, bread etc. Any way possible to solve this? Here is a picture of how it looks:

Original esx_inventoryhud is back with many improvement and fixes for esx version 1!

4 Likes

This works with v1 final of es_extended?

The give, use, drop, aren’t in English but its set to “en”

thank man :slight_smile:

2 Likes

hello, i have problem whit trunk_inventoryhud i can open only when number plate is Taxi, Police, Ambulance or Mechanic. any help or any sugestions?

I want to change the “drop” function so the item gets deleted instead of dropped.

The Client function for drop Item looks fine for me:

RegisterNUICallback(
    "DropItem",
    function(data, cb)
        if IsPedSittingInAnyVehicle(playerPed) then
            return
        end

        if type(data.number) == "number" and math.floor(data.number) == data.number then
			if data.item.type == "item_money" then
				TriggerServerEvent("esx:removeInventoryItem", "item_account", "money", data.number)
			else
				TriggerServerEvent("esx:removeInventoryItem", data.item.type, data.item.name, data.number)
			end
        end

        Wait(250)
        loadPlayerInventory()

        cb("ok")
    end
)

But I dont know what to change for the Javascript:

    $('#drop').droppable({
        hoverClass: 'hoverControl',
        drop: function (event, ui) {
            itemData = ui.draggable.data("item");

            if (itemData == undefined || itemData.canRemove == undefined) {
                return;
            }

            itemInventory = ui.draggable.data("inventory");

            if (itemInventory == undefined || itemInventory == "second") {
                return;
            }

            if (itemData.canRemove) {
                disableInventory(300);
                $.post("http://esx_inventoryhud/DropItem", JSON.stringify({
                    item: itemData,
                    number: parseInt($("#count").val())
                }));
            }
        }
    });

I believe I have to make the adjust in the last part of the javascript function but I dont know how. If i just delete the content of the if-state, then nothing happend when dropping, ingame.

I would love to have also a ranged text message which says " player x destroyed item y" for the people who are like 20 meter arround.

I would be so happy to get this problem fixed. Thanks for every help.

Best regards,
ReeN

please add fastkey 1,2,3 for weapon

hi, i used this inventory so far so good everything works well, but only 1 problems is why i cant give clean money ? what should i need to do? need help here

make sure the items are usable in esx_basicneeds

We are also having that same issue. Believe its through es_extended but could be mistaken

english one?

any fix for this ?

having a problem with Icons … I added tehm on the hmtl/images foldeer and in the resource but they still wont show up :confused: