Changed scripts still referencing GetInventory to GetItemPackage.

This commit is contained in:
Filip Maj 2019-05-06 16:33:18 -04:00
parent f038b525c6
commit c1fdad2156
4 changed files with 44 additions and 44 deletions

View file

@ -31,7 +31,7 @@ function onEventStarted(player, npc, triggerName)
itemId = callClientFunction(player, "selectStoreItem", nil, categoryChoice);
if (itemId ~= nil) then
player:GetInventory(INVENTORY_NORMAL):RemoveItem(itemId, 1);
player:GetItemPackage(INVENTORY_NORMAL):RemoveItem(itemId, 1);
end
elseif (storageChoice == 2) then
@ -44,7 +44,7 @@ function onEventStarted(player, npc, triggerName)
itemId = callClientFunction(player, "selectReceiveItem", nil, categoryChoice);
if (itemId ~= nil) then
player:GetInventory(INVENTORY_NORMAL):AddItem(itemId, 1);
player:GetItemPackage(INVENTORY_NORMAL):AddItem(itemId, 1);
end
end