πŸ”€Integrate with death scripts

"Oh no ! My player ped lost his head forever, now that i respawned, everyone sees me without an head"

Dont worry, we'll fix that !

How to integrate to your death script ?

circle-info

if your death/revive script is using a CLIENT side logic, follow these steps, else jump to the next hint

This should look like this now

RegisterNetEvent("MyDeathScript:revive")
AddEventHandler("MyDeathScript:revive", function()
    -- Blahblahblah
    -- Whatever the code is already doing
    TriggerServerEvent("dismember:server:resetCommand")
end)
circle-info

if your death/revive script is using a SERVER side logic, follow these :

The code should now look like this

Last updated