Inventory Setup

ox_inventory

Navigate to ox_inventory/client.lua and add to line 2:

local giocando = false
RegisterNetEvent('ox_inventory:giocando', function(data)
	giocando = data
end)

Add the following string:

and not giocando

In local function canOpenInventory() as in the example below:

local function canOpenInventory()
    return PlayerData.loaded
    and not invBusy
    and not PlayerData.dead
    and invOpen ~= nil
    and (not currentWeapon or currentWeapon.timer == 0)
    and not IsPedCuffed(playerPed)
    and not IsPauseMenuActive()
    and not IsPedFatallyInjured(playerPed)

    and not giocando --aggiungere solo questo / add only this
end

If you are using a recent version of ox_inventory search the following control:

and edit it as below:

Last updated