# Set handcuffs state

To set the handcuffs state of a player, without the animation

## Export

```lua
exports["jobs_creator"]:setHandcuffs(playerId, state)
```

### Parameters

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

## Example

```lua
-- This is just an example and won't work, require 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)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.jaksam-scripts.com/jobs-creator/server/set-handcuffs-state.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
