_idEntreprise = 1;
_entrepriseObject = objNull;
{
_id = _x select 0;
_entrepriseObject = _x select 1;
if (_id isequalto _idEntreprise) exitWith {_entrepriseObject = _x select 1;};
} foreach maxence_all_entreprises;
if !(isNull _entrepriseObject) then {
_oldEntACC = _entrepriseObject getVariable ["entreprise_bankacc",0];
_oldEntACC = _oldEntACC + _repairReward;
_entrepriseObject setVariable ["entreprise_bankacc",_oldEntACC,true];
[(_entrepriseObject getVariable ["entreprise_id",0]),5,(_entrepriseObject getVariable ["entreprise_bankacc",0])] remoteExecCall ["max_entreprise_fnc_updateEntreprise",2];
[_entrepriseObject,format ["%1 (réparation d'objet)",(name player)],_repairReward,2] remoteExecCall ["max_entreprise_fnc_insertEntrepriseLogs",2];
};