Puts the item on the cursor into one of the player's bags or other containers. The item will be placed in the lowest numbered slot (containerSlotID
) in the container.
Causes an error message (UI_ERROR_MESSAGE
) if the container is full. Cannot be used to place an item into the player's backpack; see PutItemInBackpack()
.
See also Container functions, Cursor functions.
Signature:
hadItem
=
PutItemInBag(inventory)
Arguments:
inventory
- Index of one of the player's equipment or container slots (number
, inventoryID)
Returns:
hadItem
- 1 if the cursor had a item; otherwise nil (1nil
)