vaside
1
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.
DioneB
2
And what was the error?
I usually use
ESX.UI.Menu.CloseAll()
ESX.ShowInventory()
DioneB
3
if it is not returning any error on the server console, see if it is returning something in the Game Console (F8)
DioneB
5
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)