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) My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
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! Diet with russian vodka, lose 3 days in one week !
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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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 ? Diet with russian vodka, lose 3 days in one week !
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 Diet with russian vodka, lose 3 days in one week !
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...
X-SHADOW Posted March 22, 2012 Posted March 22, 2012 did you even try my script ? My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
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" />
Castillo Posted March 22, 2012 Posted March 22, 2012 Change type="client" to type="server". San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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 http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
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