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

# Set handcuffs state

> Set a player's handcuffed state directly, without triggering the handcuff animation.

Set the handcuffs state of a player, without the animation.

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

  ```lua Example theme={null}
  -- This is just an example and won't work, requires you to use the export properly
  RegisterNetEvent("hospital_script:playerDead", function(playerId)
      -- The script code
      -- The script code
      -- The script code

      -- The dead player is not handcuffed anymore
      exports["jobs_creator"]:setHandcuffs(playerId, false)
  end)
  ```
</CodeGroup>

### Parameters

| Name       | Data Type | Description                         |
| ---------- | --------- | ----------------------------------- |
| `playerId` | integer   | The target player's server ID       |
| `state`    | boolean   | `true` = handcuffed, `false` = free |


## Related topics

- [Server](/jobs-creator/server/index.md)
- [Set door ID state (locked/unlocked)](/doors-creator/server/set-door-id-state-locked-unlocked.md)
- [Set inventory disabled](/jaksam-inventory/functions/client/set-inventory-disabled.md)
- [Set weapon wheel](/jaksam-inventory/functions/client/set-weapon-wheel.md)
- [Set jaksam weapon wheel](/jaksam-inventory/functions/client/set-jaksam-weapon-wheel.md)
