> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/functions/hudmanager.onwidth.md).

# hudManager.onWidth

> **onWidth**(`onWidth`): `void`

Register a callback that returns the width of this HUD element.

### Parameters

#### onWidth

`Function`

Function returning the width in pixels.

### Returns

`void`

### Example

```ts
hudManager.onWidth(() => { return 100; });
```
