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

Adding pictures for missing stuff is easy :slight_smile:

But how do you change the text for right click options to English?

1 Like

Located in HTML locales

There is a config file in the js folder. Where it says CS change it to EN

HTML/locales/en <-

1 Like

Anyone know why I have weed in my items png and have it the same as Database and it isn’t working?

2 Likes

Did you add the file location to your resource folder? Are all your other custom item images working for ya? @Presty1

Anyone know what i need to change to get black money?

    if Config.IncludeCash then
        if money > 0 then
            local formattedMoney = ESX.Math.GroupDigits(money)

            table.insert(items, {
                label     = "Money",
                count     = formattedMoney,
                type      = 'item_money',
                name     = 'cash',
                usable    = false,
                rare      = false,
                limit = -1,
                canRemove = true
            })
        end
    end
1 Like

Oh gotcha I am dumb I forgot a resource file even existed lol.

1 Like

Just pushed pretty big update to Github. Check it out and let me know, if something does not work.

  • Giving items
  • Searching inventory
  • Multiple keys for inventory close
  • UI update
  • Added more icons
  • And some other minor changes
3 Likes

can you add this to the next update IsInputDisabled(0) so people on controller can use it with out popping up when pressing b or X

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(0)
        if IsControlJustReleased(0, Config.OpenControl) and IsInputDisabled(0) then
            loadPlayerInventory()
            SendNUIMessage({
                action = "display"
            })
            SetNuiFocus(true, true)
        end
    end
end)
1 Like

new update is nice

1 Like

Added, thanks!

? Any help ?

1 Like

is there a way to change the background i would assume its the ui.css but nothing happends when i change it?

  • 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)
2 Likes

Because minimised version of it is used. So you have to edit ui.min.css file.

ah okay il just try and copy pasta the color code then and try

CSS styles are not loaded. If you uploaded new version, you have to restart your server.

If you want a french translation :

edit __resource.lua

    'html/locales/fr.js', -- only server side
    'locales/fr.lua', -- server side & client side

add locales\fr.lua

Locales['fr'] = {
	['cash'] = 'Éspèces',
	['player_nearby'] = 'Le joueur sélectionné n\'est plus près de vous.',
	['players_nearby'] = 'Il n\'y a personne près de vous.'
}

add html\locale\fr.js

var locale = new Object();
locale.dropItem = "<span class=\"emoji\">🗑️</span> Jeter";
locale.useItem = "<span class=\"emoji\">🖐️</span> Utiliser";
locale.giveItem = "<span class=\"emoji\">🎁</span> Donner";
locale.getNumber = "Quantité";
locale.getPlayer = "Selectionner joueur";
locale.confirmNumber = "Envoyer";
locale.closeInventory = "Fermer";
locale.searchInventory = "Rechercher";
1 Like

Why don’t you just make a PR for this?