> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Duty-Status umgeschaltet

> Wird client-seitig ausgelöst, nachdem der Spieler sich an- oder abmeldet.

Wird client-seitig ausgelöst, nachdem der Spieler sich an-/abmeldet.

<CodeGroup>
  ```lua Event theme={null}
  AddEventHandler("jobs_creator:toggleDuty", function(isOnDuty)
  end)
  ```

  ```lua Beispiel theme={null}
  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)
  ```
</CodeGroup>

### Parameter

| Name       | Datentyp | Beschreibung                   |
| ---------- | -------- | ------------------------------ |
| `isOnDuty` | boolean  | Neuer Duty-Status des Spielers |


## Related topics

- [Duty](/de/jobs-creator/client/duty/index.md)
- [Duty-Status geändert](/de/jobs-creator/server/duty/duty-status-changed.md)
- [Aktuellen Duty-Status umschalten](/de/jobs-creator/client/duty/toggle-current-duty-status.md)
- [UI umgeschaltet](/de/shops-creator/client/ui_toggled.md)
