# Sandbox.BaseCombatWeapon.DrawHud

## Overload 1

```csharp
void DrawHud(CameraComponent camera)
```

Draw this weapon's HUD on the given camera - the crosshair goes at screen centre when the
camera sits on the aim ray, otherwise (third person, mounted weapons) at the projected aim
point. Games call this for weapons they draw manually, e.g. seat-controlled ones.

### Parameters

- `camera` (`CameraComponent`)

## Overload 2

```csharp
void DrawHud(HudPainter painter, Vector2 crosshair)
```

Draw this weapon's HUD - called every frame on the client holding it, with the crosshair
position (screen centre, or the projected aim point in third person). Base draws the crosshair
via [Sandbox.BaseCombatWeapon.DrawCrosshair](/api/Sandbox.BaseCombatWeapon/DrawCrosshair); override to add ammo counts, hints or scopes.

### Parameters

- `painter` (`HudPainter`)
- `crosshair` (`Vector2`)

Declared in [Sandbox.BaseCombatWeapon](/api/Sandbox.BaseCombatWeapon).
Assembly: `Sandbox.Engine`.
