GamerDeMTA Posted July 29, 2013 Posted July 29, 2013 Hey I need runcode for invul player, (crun) invul vehicle (crun) and I need to do a Ped Invul, for a script, how to?
Castillo Posted July 29, 2013 Posted July 29, 2013 God mode for the local player: addEventHandler ( "onClientPlayerDamage", localPlayer, cancelEvent ) For vehicle: setVehicleDamageProof ( getPedOccupiedVehicle ( getPlayerFromName ( "TheNameFromThePlayer" ) ), true )
GamerDeMTA Posted July 29, 2013 Author Posted July 29, 2013 and how to do it for a ped in a script?? invul
GamerDeMTA Posted July 29, 2013 Author Posted July 29, 2013 No I mean a ped which I create with createPed and the master i mean he doesn't receive damage
iPrestege Posted July 29, 2013 Posted July 29, 2013 Fine, Change on player damage to on ped damage also localPlayer to root .
iPrestege Posted July 29, 2013 Posted July 29, 2013 He can use getElementsByType to get all ped's element's in the resource. or defined that ped he want .
GamerDeMTA Posted July 29, 2013 Author Posted July 29, 2013 well i just want to do it for 1 ped which i put:
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