> For the complete documentation index, see [llms.txt](https://mstudio-1.gitbook.io/mstudio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mstudio-1.gitbook.io/mstudio/kz-resources/editor-10/exports.md).

# Exports

## 📥 Export Client Side

```lua
- exports['Kz-PvpDeathSystem']:isPlayerDead()
- exports['Kz-PvpDeathSystem']:reviveLocalPlayer()
```

## 📥 Export Server Side

```lua
- exports['Kz-PvpDeathSystem']:revivePlayer(source)
```

***

## Example of how to use it

{% hint style="warning" %}

1. exports\['Kz-PvpDeathSystem']:isPlayerDead()
   {% endhint %}

```lua
local isDead = exports['Kz-PvpDeathSystem']:isPlayerDead()

if isDead then
    print("You can't do that because you're dead!")
else
    print("Action completed successfully")
end
```

{% hint style="warning" %}
2\. exports\['Kz-PvpDeathSystem']:reviveLocalPlayer()
{% endhint %}

```lua
RegisterCommand("healme", function()
    exports['Kz-PvpDeathSystem']:reviveLocalPlayer()
end, false)
```

{% hint style="warning" %}
3\. exports\['Kz-PvpDeathSystem']:revivePlayer(source)
{% endhint %}

```lua
local targetPlayer = 2 -- ID of the player to be revived

local success = exports['Kz-PvpDeathSystem']:revivePlayer(targetPlayer)

if success then
    print("The player was revived")
else
    print("Unable to find the specified player")
end
```
