Index | Collapse All Expand All

Backpack Class
Backpack Class Methods Events

Beta Documentation - Subject to change.
Provides access to a player's backpack.

# Methods

| Name | Description
--- | --- | ---
| GetItem | Gets and item from the player's backpack.
| GetSize | Gets the size of the player's backpack.
| PerformItemDrop | Function to handle moving or swapping an item in our inventory. This DOES NOT handle dragging items from any of the character banks or housing hooks. For that functionality please use "PerformShortcutDrop.".
| PerformShortcutDrop | Function to handle dropping any kind of item into the backpack. If the item is already in the backpack or is coming from a housing hook, it will perform a swap with anything at the destination index.

# Events

| Name | Description
--- | --- | ---
| ItemAdded | Event fired when an item is added to the backpack.
| ItemMoved | Event fired when an item is moved in the backpack.
| ItemRemoved | Event fired when an item is removed from the backpack.
| SizeChanged | Event fired when the size of the backpack has changed.