# Hanging & Execution

![](https://dunb17ur4ymx4.cloudfront.net/packages/images/2796f4ffda7b5b6903fd69b49fc4bf1524b487aa.png)

[Trailer](https://youtu.be/Ms8KR7fiT44)

\
[Showcase](https://youtu.be/1N7aVZLusdY)

\
[BUY HERE](https://d-labs.tebex.io/package/6496796)

\
[BUY MAP](https://d-labs.tebex.io/package/6496798)

## General benefits and script support

* [Modification of script functions](https://d-labs-scripts.gitbook.io/docs/advantages/open-server-client-function)
* [Simple translation](https://d-labs-scripts.gitbook.io/docs/advantages/translations)

## Dependencies & Installation

* Put the script in the server and add `ensure "script_name"` to server.cfg
* enjoy...

## Exports

Death of a player

If a player dies, these two events will be triggered.<br>

```lua
TriggerServerEvent('d-labs-hanging:server:playerDie')
```

```lua
TriggerEvent('d-labs-hanging:client:playerDie', PlayerPedId())
```

Next, the function in client\_open.lua will be launched, which will also provide the Ped Id that you can work with.

```lua
function playerDieByHanging(player)
	-- print('player .. ', player)


end
```
