Fix Advanced Trading Selling + new Var

New variable to configure whether or not the player will need to key to
sell a vehicle. DZE_SaleRequiresKey = false;
This commit is contained in:
icomrade
2016-07-23 01:16:37 -04:00
parent 855a72ca1f
commit 9c4e30ea08
4 changed files with 6 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ _weaps = _this select 2;
_bags = [];
_vehInfo = [];
_keyID = 0;
_deleteVeh = true; //set to false to require key to sell vehicles
_deleteVeh = false;
if(count _this > 3) then {
if (count (_this select 3) > 0) then {
@@ -117,7 +117,7 @@ if (count _vehInfo > 0) then {
};
};
} count _normalWeaps;
if (_keyID == "0") then {_deleteVeh = True;};
if (_keyID == "0" || !DZE_SaleRequiresKey) then {_deleteVeh = True;};
} else {
_deleteVeh = True;
};