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