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

> Comprueba si un jugador específico está actualmente en servicio.

Devuelve si el jugador está en servicio o no.

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

### Parámetros

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `playerId` | integer | ID de servidor del jugador objetivo |

### Valor de retorno

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `isOnDuty` | boolean | **true** si el jugador está en servicio, **false** si el jugador está fuera de servicio |


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