Lipee Lima Posted April 19, 2022 Share Posted April 19, 2022 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 ) Link to comment
Addlibs Posted April 20, 2022 Share Posted April 20, 2022 No need to disable the HS system if you can modify it, simply add checks like the ones above within the system. Link to comment
Lipee Lima Posted April 20, 2022 Author Share Posted April 20, 2022 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. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now