Ninja Posted March 22, 2012 Share 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) Link to comment
X-SHADOW Posted March 22, 2012 Share Posted March 22, 2012 addEventHandler("onVehicleDamage", root, function() cancelEvent() end) Link to comment
Wei Posted March 22, 2012 Share 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! Link to comment
Ninja Posted March 22, 2012 Author Share 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... Link to comment
Castillo Posted March 22, 2012 Share Posted March 22, 2012 addEventHandler ( "onVehicleEnter", root, function ( ) setVehicleDamageProof ( source, true ) end ) That'll set damage proof to the vehicle you've just entered. Link to comment
Wei Posted March 22, 2012 Share 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 ? Link to comment
Ninja Posted March 22, 2012 Author Share Posted March 22, 2012 Yeah im already in the vehicle and it doesn't work... Link to comment
Wei Posted March 22, 2012 Share 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 Link to comment
Ninja Posted March 22, 2012 Author Share Posted March 22, 2012 I just want to record race maps and don't want that my tail don't fall up... Link to comment
X-SHADOW Posted March 22, 2012 Share Posted March 22, 2012 did you even try my script ? Link to comment
Ninja Posted March 22, 2012 Author Share 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" /> Link to comment
Castillo Posted March 22, 2012 Share Posted March 22, 2012 Change type="client" to type="server". Link to comment
Ninja Posted March 22, 2012 Author Share 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: Link to comment
Kenix Posted March 22, 2012 Share Posted March 22, 2012 https://wiki.multitheftauto.com/wiki/Scr ... troduction 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