10. AIOMenu support (OPTIONAL) - RuisSoftware/FiveM-Resources-2024 GitHub Wiki
esx_aiomenu
:
Add support for Replace DP_Inventory/client/main.lua
Citizen.CreateThread(
function()
while true do
Citizen.Wait(0)
if IsControlJustReleased(0, Config.OpenControl) and IsInputDisabled(0) then
openInventory()
end
end
end
with:
--[[Citizen.CreateThread(
function()
while true do
Citizen.Wait(0)
if IsControlJustReleased(0, Config.OpenControl) and IsInputDisabled(0) then
openInventory()
end
end
end
)--]]
Then add to DP_Inventory/__resource.lua
:
exports {
'openInventory'
}
And replace in esx_aiomenu/client/main.lua
:
RegisterNUICallback('NUIopenInventory', function()
exports['es_extended']:openInventory()
end)
With:
RegisterNUICallback('NUIopenInventory', function()
exports['DP_Inventory']:openInventory()
end)