> ## 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.

# Get if a player is on duty

> Vérifie si un joueur spécifique est actuellement en service.

Retourne si le joueur est en service ou non.

<CodeGroup>
  ```lua Export theme={null}
  exports["jobs_creator"]:isPlayerOnDuty(playerId)
  ```

  ```lua Example theme={null}
  local playerId = 52
  print("Player ID " .. playerId .. " is on duty: " .. tostring(exports["jobs_creator"]:isPlayerOnDuty(playerId)))
  ```
</CodeGroup>

### Paramètres

| Nom | Type de donnée | Description |
| - | - | - |
| `playerId` | integer | Server ID du joueur cible |

### Valeur de retour

| Nom | Type de donnée | Description |
| - | - | - |
| `isOnDuty` | boolean | **true** si le joueur est en service, **false** s'il est hors service |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.