Custom Death Scripts

We have integrated Smart Defib straight out of the box with a few custom death scripts. Some of these require you to add additional code to your death script to work properly.

Add the following code to a new line in the client.lua file:RegisterNetEvent("faxrevive:defibrevive")

You will now need to enable this integration in the Smart Defib config.lua file.

AddEventHandler("faxrevive:defibrevive", function()
    revivePed(PlayerPedId())
end)

Death Script (https://github.com/ItsAmmarB/DeathScript)

Add the following code to a new line in the client.lua file. This is only if you are using the OLD version of the death script which uses lua and not javascript.

You will also need to enable this in the config. If you are using the javascript version, make sure to enable v2.

AddEventHandler("faxrevive:defibrevive", function()
    revivePed(PlayerPedId())
end)

Last updated