local weaponsToDamageSwat = {
[36] = true,
[35] = true,
}
function handleSwatDamage(attacker, weapon, loss, x, y, z, tyre)
if (weapon and getElementModel(source) == 601 and loss > 0) then
if (weaponsToDamageSwat[weapon]) then
setElementHealth(source,getElementHealth(source) - 500)
setVehicleDamageProof(source, false)
end
end
end
end
addEventHandler("onClientVehicleDamage", root, handleSwatDamage)