Pe/\/duluM Posted August 8, 2013 Share Posted August 8, 2013 Simple: To prevent vehicles from explode. Or atleast make "onVehicleExplode" cancleable, so it doesn't explode on cancel. ~ Greetings. Link to comment
Castillo Posted August 9, 2013 Share Posted August 9, 2013 You can use onVehicleDamage > setElementHealth. Link to comment
glowdemon1 Posted September 3, 2013 Share Posted September 3, 2013 You can use onVehicleDamage > setElementHealth. This is however really buggy sometimes when a vehicle gets a large ammount of damage in a short ammount of time (E.G: When you drive over it with a dumper) - This can be seen in lots of RP servers. Link to comment
Sasu Posted September 5, 2013 Share Posted September 5, 2013 You can use this: local myCars = {} addEventHandler("onVehicleDamage", root, function() if getElementHealth(source) < 300 and not myCars[source] then myCars[source] = true setElementHealth(source, 300) setVehicleDamageProof(source, false) end end) If the car's health has less than 300 then set the vehicle damage proof to false. Link to comment
Recommended Posts