# Sandbox.BaseInventoryComponent.HasAmmo

```csharp
bool HasAmmo(BaseAmmoResource type, int amount = 1)
```

Does this inventory hold at least `amount` reserve ammo of the given type?

### Parameters

- `type` (`BaseAmmoResource`)
- `amount` (`int`), default `1`

### Returns

`bool`

Declared in [Sandbox.BaseInventoryComponent](/api/Sandbox.BaseInventoryComponent).
Assembly: `Sandbox.Engine`.
