Jump to content

Death SepPedAnim HELP


yoya99

Recommended Posts

  • Moderators
Do how to do it?

Something like this. You can't prevent the dead, but you can prevent dying/getting hurt.

local dataTransferLimiter = false 
addEventHandler("onClientPlayerDamage",localPlayer, 
function (attacker, weapon, bodypart,loss) 
    if not dataTransferLimiter and getElementHealth(source) <= loss then 
        triggerServerEvent("doDeadAnimation",localPlayer) 
        dataTransferLimiter = true 
        cancelEvent() 
    end 
end) 
  
addEventHandler("onClientPlayerSpawn",localPlayer, 
function () 
    dataTransferLimiter = false 
end) 

addEvent("doDeadAnimation",true) 
addEventHandler("doDeadAnimation",root, 
function () 
    if isElement(client) then 
     
    end 
end) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...