GhostXoP Posted December 23, 2012 Posted December 23, 2012 What function can i use to make a ped indestructible?
Castillo Posted December 23, 2012 Posted December 23, 2012 You can either cancel the ped damage ( onClientPedDamage event ) with the function: cancelEvent, or you can use my resource to do this: https://community.multitheftauto.com/ind ... ls&id=5195
GhostXoP Posted December 23, 2012 Author Posted December 23, 2012 Theres nothing server side that will make an NPC non kill-able? What if i remove collision ?
Castillo Posted December 23, 2012 Posted December 23, 2012 As far as I know, there isn't. But, what's wrong with cancelling the damage? it works perfectly fine.
Smart. Posted December 23, 2012 Posted December 23, 2012 Theres nothing server side that will make an NPC non kill-able? What if i remove collision ? There is but I would not recommend using it. You could add a timer to set the ped's health to 100 every second but running a timer that many times would probably fuck up the server
Castillo Posted December 23, 2012 Posted December 23, 2012 Well, I didn't even mention that because it would be inefficient.
GhostXoP Posted December 23, 2012 Author Posted December 23, 2012 The timer would bog down a server, especially if i have hundreds of peds in businesses. Canceling ped damage, would keep the player from being damaged too correct? Or would they be classified as peds too?
Castillo Posted December 23, 2012 Posted December 23, 2012 You can cancel the damage of specified ped elements ( by checking before cancel ). If you cancel globally, it'll not affect the players.
GhostXoP Posted December 23, 2012 Author Posted December 23, 2012 So your saying, if i just cancel the event client side it will not affect players, and players can be damaged?
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