> ## 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 local player is handcuffed

> Comprueba si el jugador local está esposado actualmente.

Devuelve si el cliente/jugador **local** está esposado.

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

  ```lua Example theme={null}
  -- Este código comprueba continuamente si el jugador local (uno mismo) está esposado
  -- Si es así, se desactivarán los controles indicados
  Citizen.CreateThread(function()
      while true do
          Citizen.Wait(0)

          if(exports["jobs_creator"]:isPlayerHandcuffed())then
              DisableControlAction(0, 22, true) -- Desactiva el salto
          end
      end
  end)
  ```
</CodeGroup>

### Valor de retorno

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `isHandcuffed` | boolean | `true` si el jugador está esposado, `false` si el jugador **no** está esposado |

### ¿Dónde insertar el código?

Puedes colocar el código en cualquier archivo del cliente de tus scripts.


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