> For the complete documentation index, see [llms.txt](https://viper-development-1.gitbook.io/viperdocs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://viper-development-1.gitbook.io/viperdocs/viper-scripts/multi-job/developer-api/client-events.md).

# Client Events

Client-side event hooks fired by viper-multijob.

These events are fired on the client by viper-multijob. Listen to them with `AddEventHandler` to react to changes from your own resource.

{% hint style="success" %}

#### `viper-multijob:client:dutyChanged`

Fired on the client whenever the server syncs a new duty state.

```lua
---@param state boolean
AddEventHandler("viper-multijob:client:dutyChanged", function(state)

end)
```

{% endhint %}
