> For the complete documentation index, see [llms.txt](https://documentation.jaksam-scripts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.jaksam-scripts.com/jobs-creator/client/duty/duty-status-toggled.md).

# Duty status toggled

Triggered after player goes on/off duty client side

## Event

```lua
AddEventHandler("jobs_creator:toggleDuty", function(isOnDuty)

end)
```

### Parameters

| Name       | Data Type | Description            |
| ---------- | --------- | ---------------------- |
| `isOnDuty` | boolean   | Player new duty status |

## Example

```lua
AddEventHandler("jobs_creator:toggleDuty", function(isOnDuty)
    if(isOnDuty) then
        ESX.ShowNotification("You are now on duty")
    else
        ESX.ShowNotification("You are now off duty")
    end
end)
```
