Skip to content

Commit 00d1857

Browse files
Merge pull request #148 from lenzh/patch-1
Fixes issue with inventory not setting up right
2 parents 57fd6ae + 99eee77 commit 00d1857

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)