# Sandbox.BaseInventoryComponent.GetSlot

```csharp
BaseInventoryItem GetSlot(int slot)
```

Returns the item in the given slot, or null if the slot is empty. When items share the slot
(a buckets inventory), the lowest [Sandbox.BaseInventoryItem.SlotOrder](/api/Sandbox.BaseInventoryItem/SlotOrder) wins.

### Parameters

- `slot` (`int`)

### Returns

`BaseInventoryItem`

Declared in [Sandbox.BaseInventoryComponent](/api/Sandbox.BaseInventoryComponent).
Assembly: `Sandbox.Engine`.
