Black2 Posted January 17, 2016 Share Posted January 17, 2016 Hi,Someone has an idea of how I can make a godmode ped to NPC.Thx Example: createPed ( 255, 0, 0, 0 ) Link to comment
tosfera Posted January 17, 2016 Share Posted January 17, 2016 use onClientPedDamage and cancelEvent to avoid them from getting damage. Don't forget to disable the stealth kills too. Link to comment
knightscript Posted January 26, 2016 Share Posted January 26, 2016 Here you go, remember to make the script CLIENT SIDE!. theped = createPed ( 255, 0, 0, 3 ) --saves the ped on a global function cancelPedDamage ( attacker ) --the function if source == theped then --checks if the ped that is being attacked is the global cancelEvent() -- cancel any damage done to ped end --ends the check end --ends the function addEventHandler ( "onClientPedDamage", getRootElement(), cancelPedDamage ) --adds the event 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