Jump to content

HELP GOD MODE


Lipee Lima

Recommended Posts

Posted

I was wondering how I can cancel HS damage without having to disable the HS system, could anyone help me?

addEventHandler ( "onClientPlayerDamage",root,
    function ()
        if getElementData(source,"invinciblestaff") then
            cancelEvent()
        end
    end
)
     
addEventHandler("onClientPlayerStealthKill",localPlayer,
    function (targetPlayer)
        if getElementData(targetPlayer,"invinciblestaff") then
            cancelEvent()
        end
    end
)
    
addEventHandler ( "onClientPlayerDamage",root,
    function ()
        if getElementData(source,"invinciblestaff") then
            cancelEvent()
        end
    end
)
 
addEventHandler("onClientPlayerStealthKill",localPlayer,
    function (targetPlayer)
        if getElementData(targetPlayer,"invinciblestaff") then
            cancelEvent()
        end
    end
)

 

Posted
1 hour ago, Addlibs said:

No need to disable the HS system if you can modify it, simply add checks like the ones above within the system.

Could you help me? I'm new to this.

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...