Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Places the item on the cursor into the specified bag slot.
PutItemInBag(slotId)
Arguments[]
- slotId
- number - Inventory slot id containing the bag in which you wish to put the item. Values 20 to 23 correspond to the player's bag slots, right-to-left from the first bag after the backpack.
Details[]
- Puts the item on the cursor into the specified bag slot on the main bar, if it's a bag. Otherwise, attempts to place the item inside the bag in that slot. Note that to place an item in the backpack, you must use PutItemInBackpack.
Example[]
The following put the item on the cursor (if it's not a bag) into the first bag (not including backpack) starting from the right.
PutItemInBag(20)