> For the complete documentation index, see [llms.txt](https://abdulkadir-aktas.gitbook.io/qadr_docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://abdulkadir-aktas.gitbook.io/qadr_docs/qadr_ui/death-screen.md).

# Death Screen

You can call this function after your character dies. This function will not work while your character is alive. This feature is supported in version 1.53 and above. Update your script so you can use it.

{% embed url="<https://youtu.be/T-7QKuIL2LM>" %}

## Example

```lua
RegisterCommand("DeathScreen", function(src,args,raw)
    local data = {
        showScreen = true,
        labelAction = "labelAction",
        labelOpponent = "labelOpponent",
        labelPosse = "labelPosse",
        labelDeathCause = "labelDeathCause",
        labelPlayerKills = 0,
        labelPlayerDeaths = 10,
        showKillDeathRatio = true,
        showHelpTextClone = true,
        labelHelpTextClone = "labelHelpTextClone",
        showDeathCauseLines = true,
        showPosseLines = true,
        showOpponentLines = true,
        variationId = args[1] or 0
    }
    local deathScreen = exports["qadr_ui"]:mpDeathScreen(data,GetCurrentResourceName())
    if not deathScreen then return end
    Wait(3000)
    local uData = {
        labelPlayerKills = 1
    }
    deathScreen:update(uData)
    Wait(3000)
    local uData = {
        variationId = 10
    }
    deathScreen:update(uData)
    Wait(3000)
    local uData = {
        showOpponentLines = false
    }
    deathScreen:update(uData)
end)
```

## Example For Redemrp Respawn Script

You need these changes for redemrp\_respawn.\
<https://github.com/abdulkadiraktas/redemrp_respawn/commit/dcd03e24ac32679a0e4eb6133843675753f65c2b>
