Jump to content

Event "onVehiclePreExplode"


Recommended Posts

  • 4 weeks later...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...