Syntax
Lua |
---|
function Backpack:GetItem(index); |
Parameters
- index
-
Type:
number
The index of the item to get.
Returns
Type: ItemEither 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.