English Solved How to Specify Tax Deduction in Purchasing Items for State Treasury

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

Demon

User
29/12/19
3
0
250
Good day! Happy New Year 2021 everyone. I have a question: how can I correctly specify in the fn_buyClothes.sqf, fn_virt_buy.sqf, fn_weaponShopBuySell.sqf files
tax deduction to the state treasury when purchasing an item.
 
Solution
Hello there !

So, for the fn_virt_buy.sqf, below :
Code:
hint format [localize "STR_Shop_Virt_BoughtGang",_amount,(localize _name),[(_price * _amount)] call life_fnc_numberText];
add this line :
Code:
if ((M_CONFIG(getNumber,"VirtualItems",_type,"illegal")) isEqualTo 0) then {[(_price * _amount),1] spawn max_gouvernement_fnc_gouvernementTaxe;};
Still in the same file, below (to do 2 times) :
Code:
hint format [localize "STR_Shop_Virt_BoughtItem",_amount,(localize _name),[(_price * _amount)] call life_fnc_numberText];
add the same line as before :
Code:
if ((M_CONFIG(getNumber,"VirtualItems",_type,"illegal")) isEqualTo 0) then {[(_price * _amount),1] spawn max_gouvernement_fnc_gouvernementTaxe;};

About the...
Hello there !

So, for the fn_virt_buy.sqf, below :
Code:
hint format [localize "STR_Shop_Virt_BoughtGang",_amount,(localize _name),[(_price * _amount)] call life_fnc_numberText];
add this line :
Code:
if ((M_CONFIG(getNumber,"VirtualItems",_type,"illegal")) isEqualTo 0) then {[(_price * _amount),1] spawn max_gouvernement_fnc_gouvernementTaxe;};
Still in the same file, below (to do 2 times) :
Code:
hint format [localize "STR_Shop_Virt_BoughtItem",_amount,(localize _name),[(_price * _amount)] call life_fnc_numberText];
add the same line as before :
Code:
if ((M_CONFIG(getNumber,"VirtualItems",_type,"illegal")) isEqualTo 0) then {[(_price * _amount),1] spawn max_gouvernement_fnc_gouvernementTaxe;};

About the fn_weaponShopBuySell.sqf, below :
Code:
hint parseText format[localize "STR_Shop_Weapon_BoughtGang",_itemInfo select 1,[_price] call life_fnc_numberText];
add this line :
Code:
[_price,1] spawn max_gouvernement_fnc_gouvernementTaxe;
Still in the same file, below (to do 2 times) :
Code:
hint parseText format [localize "STR_Shop_Weapon_BoughtItem",_itemInfo select 1,[_price] call life_fnc_numberText];
add the same line as before :
Code:
[_price,1] spawn max_gouvernement_fnc_gouvernementTaxe;

And for the fn_buyClothes.sqf, below :
Code:
closeDialog 0;
add this line :
Code:
[_price,1] spawn max_gouvernement_fnc_gouvernementTaxe;

Tell me if everything works :)
 
Solution