Disable/delete esx_addoninventory

Hai

I have installed a new inventory and want to remove the old one ( esx addoninventory) because now I hit the inventory button it opens 2 inventory’s. I deleted esx_addoninventory out the start file and deleted the files, but Still it opens with my new inventory.

Howto disable/delete esx_addoninventory complete so only my new inventory opens?

3 Likes

Revert what you have done.
Remove these lines from es_extended

-- 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)
Then ```
22 Likes

Great Works well

2 Likes

Where is this es_extended file

Oh nvm, I found it

(It’s in resources/[esx]/es_extended/client/main.lua)

5 Likes

U are the best :heart:

2 Likes

How do I activate it again?

1 Like

so everytime i do this and restart my server, it puts the code back into my es_extended file. any reason for this?

which file have these lines?

Where is these lines? (edit: nvm i find it)

wHERE

es_extended\client\main.lua
around line 438
you have to delete this:

Summary

-Citizen.CreateThread(function()
while true do
Citizen.Wait(0)

if IsControlJustReleased(0, 289) then
if IsInputDisabled(0) and not isDead and not ESX.UI.Menu.IsOpen(‘default’, ‘es_extended’, ‘inventory’) then
ESX.ShowInventory()
end
end
end
end)

1 Like

Hello, thanks you helped me… but now i see on top right my money… what should I do so they don’t show up??

You can find the line at es_extended/client/main.lua ! Just search for “inventory”

1 Like

For some reason when i delete the text then save and restart my server it comes right back. pls help

same for me

If you use Zap-Hosting, you need to check if “Force overwrite” is deactivated.
In => Resources then ESX_Fullpack

If you are using zap hosting you need to go to the resources tab and disable force overwrite

1 Like

have the same problem , i deleted the lines but the old inventory showed up

there is no F2- its 289 and for me i have removed this code but still the inventory comes up each time… have two inventory
– Menu interactions

Citizen.CreateThread(function()

while true do

    Citizen.Wait(0)

    if IsControlJustReleased(0, 289) and IsInputDisabled(0) and not isDead and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then

        ESX.ShowInventory()

    end

end

end)