English Solved Enabling Police and EMS to Repair Cars Without Mechanic

  • Auteur de la discussion Auteur de la discussion Bundestag
  • Date de début Date de début

Bundestag

User
3/4/21
25
1
1
300
Hello dear The Programmer Forum,
i want to make it possible for the Police and EMS on my Server to be abel to rpair thair cars even when a mechanic is on duty with the Repair System. But i dont know how.
 
Solution
Hey!

You can try to edit your @The_Programmer/addons/repair_system/client/fn_repairAction.sqf, below this code :
Code:
if ((_nbRepairMan < getNumber (_CurConfig >> "minimum_number_repairman")) && (getNumber (_CurConfig >> "allow_full_repair") isEqualTo 1)) then { 
//Allows and hides the alert message if the number of repair man is insufficient and the full repair of the vehicle is authorized  
    _noMessage = true;
};
add that :
Code:
if (playerSide in [west,independent]) then {
    _noMessage = true;
    _nbRepairMan = 0;
};
Hey!

You can try to edit your @The_Programmer/addons/repair_system/client/fn_repairAction.sqf, below this code :
Code:
if ((_nbRepairMan < getNumber (_CurConfig >> "minimum_number_repairman")) && (getNumber (_CurConfig >> "allow_full_repair") isEqualTo 1)) then { 
//Allows and hides the alert message if the number of repair man is insufficient and the full repair of the vehicle is authorized  
    _noMessage = true;
};
add that :
Code:
if (playerSide in [west,independent]) then {
    _noMessage = true;
    _nbRepairMan = 0;
};
 
Solution