function vehicleFireFix(weapon, _, _, _, _, _, element)
if weapon == 42 and element and getElementType(element) == "vehicle" then
local health = getElementHealth(element)
if health < 500 then -- dont want to "fix" healthy cars
--fixVehicle(element) -- uncomment to fix the damage model also
setElementHealth(element, health + 10)
end
end
end
addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), vehicleFireFix)
© aibo
https://forum.multitheftauto.com/viewtopic.php?f=91&t=30806
What the search button not can do...