Method SetQuantity
SetQuantity(string, int)
Sets the quantity of an InventoryItem by InventoryItemDefinition Id.
Declaration
public static void SetQuantity(string itemDefinitionId, int quantity)
Parameters
Type | Name | Description |
---|---|---|
string | itemDefinitionId | The Id of the InventoryItemDefinition we are checking for. |
int | quantity | The new value we are setting. |
SetQuantity(int, int)
Sets the quantity of the InventoryItem within this Wallet of the specified InventoryItemDefinition by Hash
Declaration
public static void SetQuantity(int itemDefinitionHash, int quantity)
Parameters
Type | Name | Description |
---|---|---|
int | itemDefinitionHash | The Hash of the InventoryItemDefinition to set quantity for. |
int | quantity | The new quantity value to set. |
SetQuantity(InventoryItem, int)
Sets the quantity of an InventoryItem.
Declaration
public static void SetQuantity(InventoryItem item, int quantity)
Parameters
Type | Name | Description |
---|---|---|
InventoryItem | item | The InventoryItem to set quantity for. |
int | quantity | The new quantity value to set. |