PingouinTheDev Doc's
  • 🔐About escrow system
    • 🔑"You lack the required entitlement to use ... "
    • ❌Failed to verify protected resource
    • 🛑Error parsing script / Failed to load script
    • ↔️Transferring assets to another account
  • ⁉️FAQ
    • Do you make partnerships ?
    • Do you take customs orders ?
    • And do you send any decrypted ver...
    • Do you provide assistance / help on your scripts ?
  • 📔Scripts doc's
    • 🚑Medical Reanimation Script
      • 🛠️General config
        • 🔌Frameworks and compatibility
        • ⚙️Miscellaneous
        • 💉Medical
        • ⛔Errors and Troubleshooting
      • 📃Features and How to use
    • 😵Decapitation script
      • 🛠️General config
      • 🔀Integrate with death scripts
    • 📹Facial Recognition
      • 🛠️General config
        • 🔌Frameworks
        • ⚙️Miscellaneous
        • ⛔Errors and Troubleshooting
      • 🎛️Utils
    • ⛺Homeless tent script
      • 🛠️General config
        • 🔌Frameworks
        • ⚙️Miscellaneous
        • ⌨️Keybinds
      • 🎛️Utils
Powered by GitBook
On this page
  1. Scripts doc's
  2. Decapitation script

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 ?

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)

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

The code should now look like this

RegisterNetEvent("MyDeathScript:revive")
AddEventHandler("MyDeathScript:revive", function(source)
    -- Blahblahblah
    -- Whatever the code is already doing
    TriggerClientEvent("dismember:client:resetDismember", -1, source)
end)
PreviousGeneral configNextFacial Recognition

Last updated 11 months ago

📔
😵
🔀