Pe/\/duluM Posted August 8, 2013 Posted August 8, 2013 Simple: To prevent vehicles from explode. Or atleast make "onVehicleExplode" cancleable, so it doesn't explode on cancel. ~ Greetings.
Castillo Posted August 9, 2013 Posted August 9, 2013 You can use onVehicleDamage > setElementHealth. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
glowdemon1 Posted September 3, 2013 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. MySQL based MP3 System - unique radio stations My mappings
Sasu Posted September 5, 2013 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. State: Inactive
Recommended Posts