# Sandbox.Connection.HasInventoryItem

```csharp
bool HasInventoryItem(int definitionId)
```

Check if this connection has a specific inventory item in their Steam Inventory

### Parameters

- `definitionId` (`int`)

### Returns

`bool`

Declared in [Sandbox.Connection](/api/Sandbox.Connection).
Assembly: `Sandbox.Engine`.
