More GetInventory changes.

This commit is contained in:
Filip Maj 2019-05-06 16:43:39 -04:00
parent 044d7e5207
commit b955c38a2a
6 changed files with 8 additions and 8 deletions

View file

@ -27,7 +27,7 @@ function onTrigger(player, argc, keyitem, name, lastName)
qty = 1;
location = INVENTORY_KEYITEMS;
local added = player:GetInventory(location):AddItem(keyitem, qty, 1);
local added = player:GetItemPackage(location):AddItem(keyitem, qty, 1);
local messageID = MESSAGE_TYPE_SYSTEM_ERROR;
local message = "unable to add keyitem";