# Sandbox.BaseInventoryItem.PreferredSlot

```csharp
int PreferredSlot { get; set; }
```

The slot this item wants when added without an explicit one (GMod's SWEP.Slot). In a hotbar
inventory it falls back to the first empty slot when taken, with -1 for no preference; in a
buckets inventory the preference always wins.

Declared in [Sandbox.BaseInventoryItem](/api/Sandbox.BaseInventoryItem).
Assembly: `Sandbox.Engine`.
