Inventory Setup
ox_inventory
local giocando = false
RegisterNetEvent('ox_inventory:giocando', function(data)
giocando = data
end)and not giocandolocal 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
endLast updated