Skip to content

Commit 99eee77

Browse files
authored
Fixes issue with inventory not setting up right
this fixes issues that the config.inventory will be nil and that the inventories couldnt be opened
1 parent 57fd6ae commit 99eee77

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

shared/config.lua

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -707,15 +707,12 @@ Config.OtherActions = {
707707
}
708708
}
709709

710-
AddEventHandler("onResourceStart", function()
711-
Wait(100)
712-
if GetResourceState('ox_inventory') == 'started' then
713-
Config.Inventory = 'ox_inventory'
714-
elseif GetResourceState('ps-inventory') == 'started' then
715-
Config.Inventory = 'ps-inventory'
716-
elseif GetResourceState('lj-inventory') == 'started' then
717-
Config.Inventory = 'lj-inventory'
718-
elseif GetResourceState('qb-inventory') == 'started' then
719-
Config.Inventory = 'qb-inventory'
720-
end
721-
end)
710+
if GetResourceState('ox_inventory') == 'started' then
711+
Config.Inventory = 'ox_inventory'
712+
elseif GetResourceState('ps-inventory') == 'started' then
713+
Config.Inventory = 'ps-inventory'
714+
elseif GetResourceState('lj-inventory') == 'started' then
715+
Config.Inventory = 'lj-inventory'
716+
elseif GetResourceState('qb-inventory') == 'started' then
717+
Config.Inventory = 'qb-inventory'
718+
end

0 commit comments

Comments
 (0)