Ninja Posted March 22, 2012 Posted March 22, 2012 Hey all, Can anyone make for me a script that my car cant get hit? (that it never loose some things of the body)
X-SHADOW Posted March 22, 2012 Posted March 22, 2012 addEventHandler("onVehicleDamage", root, function() cancelEvent() end)
Wei Posted March 22, 2012 Posted March 22, 2012 function cars(thePlayer) x,y,z=getElementPosition(thePlayer) veh=createVehicle(411,x,y,z) warpPedIntoVehicle(thePlayer,veh) setVehicleDamageProof(veh,true) end addCommandHandler("carplease",cars) here if you type in /carplease you'll get bullet proof car! i think it's inferno but i'm not sure!
Ninja Posted March 22, 2012 Author Posted March 22, 2012 Thx but can you make one that i have erverytime unlimited HP also when i change vehicle? and without command?? To your script: I could also use command /repair so.... BTW its for race...
Castillo Posted March 22, 2012 Posted March 22, 2012 addEventHandler ( "onVehicleEnter", root, function ( ) setVehicleDamageProof ( source, true ) end ) That'll set damage proof to the vehicle you've just entered.
Wei Posted March 22, 2012 Posted March 22, 2012 addEventHandler ( "onVehicleEnter", root, function ( ) setVehicleDamageProof ( source, true ) end ) That'll set damage proof to the vehicle you've just entered. it's for race and player is allready in vehicle i think ?
Ninja Posted March 22, 2012 Author Posted March 22, 2012 Yeah im already in the vehicle and it doesn't work...
Wei Posted March 22, 2012 Posted March 22, 2012 addEventHandler ( "onVehicleDamage", root, function ( ) setVehicleDamageProof ( source, true ) end ) Try that it will turn damage proof on if you damage it a little
Ninja Posted March 22, 2012 Author Posted March 22, 2012 I just want to record race maps and don't want that my tail don't fall up...
Ninja Posted March 22, 2012 Author Posted March 22, 2012 Doesn't work... I make a a lua and paste your code then a meta.xml with script src="....lua" type="client" />
Ninja Posted March 22, 2012 Author Posted March 22, 2012 Big Huge Thanks To all... Finally it works with UnlimitedHP.lua: addEventHandler ( "onVehicleDamage", root, function ( ) setVehicleDamageProof ( source, true ) end ) and meta.xml:
Kenix Posted March 22, 2012 Posted March 22, 2012 https://wiki.multitheftauto.com/wiki/Scr ... troduction
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