Welcome to this tutorial which will allow you to pay your Billing System invoices in cash or by bank transfer
This tutoriel is from the help requests from ArmaEliteRP.
This tutoriel is from the help requests from ArmaEliteRP.
Let's go !
In your @The_Programmer/addons/billing_system/client/fn_lbChangedFacture.sqf, replace this line :
Code:
_payBtn buttonSetAction "[] call max_facture_fnc_payFacture;";
Code:
_payBtn buttonSetAction "[] spawn max_facture_fnc_payFacture;";
And in your @The_Programmer/addons/billing_system/client/fn_payFacture.sqf, delete this line :
Code:
if (life_atmbank < _price) exitWith {hint (["STR_NOT_ENOUGHT_MONEY","Max_Settings_Facture","Facture_Localization"] call theprogrammer_core_fnc_localize);};
And in the same file, replace theses lines :
Code:
life_atmbank = life_atmbank - _price;
[1] call SOCK_fnc_updatePartial;
Code:
_bank = [
"How would you like to pay this invoice ?",
"Payment method",
"Bank transfer",
"Cash"
] call BIS_fnc_guiMessage;
_exit = false;
if (_bank) then {
if (life_atmbank < _price) exitWith {_exit = true; hint (["STR_NOT_ENOUGHT_MONEY","Max_Settings_Facture","Facture_Localization"] call theprogrammer_core_fnc_localize);};
life_atmbank = life_atmbank - _price;
[1] call SOCK_fnc_updatePartial;
} else {
if (life_cash < _price) exitWith {_exit = true; hint (["STR_NOT_ENOUGHT_MONEY","Max_Settings_Facture","Facture_Localization"] call theprogrammer_core_fnc_localize);};
life_cash = life_cash - _price;
[0] call SOCK_fnc_updatePartial;
};
if (_exit) exitWith {};
And it's good !
Sincerely,
Forum Manager - Mathis
Dernière édition par un modérateur: