Hi!

Can someone explain me how to add ESX.ShowInventory right to the ActionMenu?
I’ve tried that

if ( data == "button1" ) then 
		ESX.ShowInventory()
	elseif ( data == "button2" ) then ...

Also in resource combine with adding a export ‘esx_extended’ but It doesn’t work.

And what was the error?
I usually use

ESX.UI.Menu.CloseAll()
ESX.ShowInventory()

if it is not returning any error on the server console, see if it is returning something in the Game Console (F8)

@DioneB

you defined ESX on start of code? EX:

ESX = nil

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

Yes I do. 20 charrrrrrrr