> For the complete documentation index, see [llms.txt](https://piotreq-scripts.gitbook.io/piotreq-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://piotreq-scripts.gitbook.io/piotreq-scripts/assets-and-guides/police-job/server-exports/interactions.md).

# Interactions

## forceUncuff

Force uncuff player through script.

```lua
exports['p_policejob']:forceUncuff(playerId)
```

* playerId: `number`
  * Existing player id

***

## draggingPlayer

Get the player you are currently dragging or other player dragging.

```lua
Player(playerId).state.draggingPlayer
```

* playerId: `number`
  * Existing player server id

Return:

* state: `boolean` or `nil`

***

## draggedBy

Get the player which currently dragging you or other player.

```lua
Player(playerId).state.draggedBy
```

* playerId: `number`
  * Existing player server id

Return:

* state: `boolean` or `nil`

***

## carryingPlayer

Get the player you are currently carrying or other player carrying.

```lua
Player(playerId).state.carryingPlayer
```

* playerId: `number`
  * Existing player server id

Return:

* state: `boolean` or `nil`

***

## carriedBy

Get the player which currently carry you or other player.

```lua
Player(playerId).state.draggedBy
```

* playerId: `number`
  * Existing player server id

Return:

* state: `boolean` or `nil`

***

## isCuffed

Get the player cuff state.

```lua
Player(playerId).state.isCuffed
```

* playerId: `number`
  * Existing player server id

Return:

* state: `boolean` or `nil`

***

## cuffType

Get the player cuff type.

```lua
Player(playerId).state.cuffType
```

* playerId: `number`
  * Existing player server id

Return:

* type: `"cuffs" / "rope"` or `"none"`

***

## hasHeadBag

Check if player has headbag on head.

```lua
Player(playerId).state.hasHeadBag
```

* playerId: `number`
  * Existing player server id

Return:

* state: `boolean` or `nil`
