πŸ‘ΎEvents / Exports

This page contains an example of a exports to integrate the death screen on your scripts.

StartDeathScreen

Use this exports to start the death screen timer.

Example Usage:

AddEventHandler("esx:onPlayerDeath", function(data)
    exports["cfx-praryo-deathscreen"]:StartDeathScreen({
        time = 10
    })
end)

ToggleUIMaximize

You can use this exports if you want to toggle maximize / minimize of the death screen on your other scripts.

Example Usage:

RegisterCommand("toggleDeathScreen", function()
     exports["cfx-praryo-deathscreen"]:ToggleUIMaximize()
end)

RemoveDeathScreen

Use this exports to reset and hide the current displayed death screen.

Example Usage:

Spawn Events

This event will be triggered once a player confirmed the spawn location.

Example Usage:

Last updated