if ((_vehicle isKindOf "Car") && (currentWeapon player) isEqualTo "hgun_P07_snds_F") then {
if ((_vehicle isKindOf "Car") && ((typeOf (vehicle player)) isEqualTo "CLASSNAME_VEHICULE")) then {
// Ajoute la fonctionnalité de radar aux véhicules de police ERI
if (isServer) then {
{
if (_x isKindOf "ERI") then {
// Ajoute le radar au véhicule
_x addWeaponTurret ["Radar_System_01_F", [-1], [-1]];
_x enableGunLights "ForceOn"; // Active les lumières du radar
};
} forEach vehicles;
};
if ((_vehicle isKindOf "Car") && (currentWeapon player) isEqualTo "hgun_P07_snds_F") then {
if ((_vehicle isKindOf "Car") && ((typeOf (vehicle player)) isEqualTo "CLASSNAME_VEHICULE")) then {