Puts the item on the cursor into the player's backpack. The item will be placed in the lowest numbered slot (containerSlotID
) in the player's backpack.
Causes an error message (UI_ERROR_MESSAGE
) if the backpack is full.
See also Container functions, Cursor functions.
Signature:
hadItem
=
PutItemInBackpack()
Returns:
hadItem
- 1 if the cursor had a item; otherwise nil (1nil
)