function onVehicleDamage(attacker, wep, loss, x, y, z, tire)
if (exports.team:isPlayerInTeam(source, "TSK") and exports.team:isPlayerInTeam(attacker, "TSK")) then
cancelEvent(true)
elseif (exports.team:isPlayerInTeam(source, "WSP") and exports.team:isPlayerInTeam(attacker, "WSP")) then
cancelEvent(true)
end
end
addEventHandler("onClientVehicleDamage", root, onVehicleDamage)
this code doesn't work. what should I do?