Beta Documentation - Subject to change.

Gets and item from the player's backpack.

Syntax

Lua
function Backpack:GetItem(index);

Parameters

index
Type: number
The index of the item to get.

Returns

Type: Item
Either nil if there is no item there or the index is invalid, or the Item that is in the given index.

Remarks

This method will return an Item out of the player's backpack at the specified index. The index must be in the range of 1 to GetSize.

See Also