# Client Exports

{% hint style="info" %}
Here you will find the list of usable exports for Police Job, you can use them if you have basic or advanced programming knowledge, we do not recommend using these if you do not have such knowledge.
{% endhint %}

{% hint style="warning" %}
REMEMBER ABOUT CLIENT SIDE AND SERVER SIDE IN CHOOSING EXPORT!
{% endhint %}

***

## playerOnBed

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

* playerId: `number`
  * Existing player server id

Return:

* state: `boolean`

***

## Damages

With this statebag you can get player damages.

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

* playerId: `number`
  * Existing player server id

Return:

* damages: `table`

***

## Player Dead State

Use following statebag to check if player is dead

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

* playerId: `number`
  * Existing player server id

Return:

* stage: `number [0 = not dead, 1 = in last stand, 2 = dead]`

***

## Check Death Stage

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

* playerId: `number`
  * Existing player server id

Return:

* stage: `number [0 = not dead, 1 = in last stand, 2 = dead]`

***

## CreateOutfitMenu

Use following export to open outfit creator menu

```lua
exports['p_policejob']:CreateOutfitMenu()
```

You can also use a command

```lua
/medic_outfit
```

***

## RemoveOutfitMenu

Use following export to open outfit remove menu

```lua
exports['p_policejob']:RemoveOutfitMenu()
```

You can also use a command

```lua
/remove_medic_outfit
```

***

## ToggleMedicBag

You can use following export to toggle medic bag prop in player hand.

```lua
exports['p_ambulancejob']:ToggleMedicBag(state)
```

* state: `boolean`
  * `true` / `false`

***

## RevivePlayer

Use following event to revive player

```lua
TriggerEvent('p_ambulancejob:RevivePlayer')
```

***

## Toggle Damages UI

Use following export to show player damages ui

```lua
exports['p_ambulancejob']:toggleDamageUI(state)
```

* state: `boolean`
  * `true` / `false`
