mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
More GetInventory changes.
This commit is contained in:
@@ -26,7 +26,7 @@ function onTrigger(player, argc, currency, qty, name, lastName)
|
||||
currency = tonumber(currency) or nil;
|
||||
qty = tonumber(qty) or 1;
|
||||
|
||||
local removed = player:GetInventory(INVENTORY_CURRENCY):RemoveItem(currency, qty);
|
||||
local removed = player:GetItemPackage(INVENTORY_CURRENCY):RemoveItem(currency, qty);
|
||||
local messageID = MESSAGE_TYPE_SYSTEM_ERROR;
|
||||
local message = "Attempting to remove currency" -- "unable to remove currency";
|
||||
|
||||
|
Reference in New Issue
Block a user