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

@@ -41,7 +41,7 @@ _HasKeyCheck = {
};
} count _inventory;
};
true; //change to _keyFound; to require key to sell vehicle
_keyFound;
};
_totalPrice = 0;
if(_total > 0)then{
@@ -83,7 +83,7 @@ if(_total > 0)then{
};
_HasKey = true;
if (_vehTrade && {(typeOf Z_vehicle) == _y}) then {
if (!(_type in ["trade_any_bicycle", "trade_any_bicycle_old", "trade_any_vehicle_free"])) then {
if (!(_type in ["trade_any_bicycle", "trade_any_bicycle_old", "trade_any_vehicle_free"]) && DZE_SaleRequiresKey) then {
_HasKey = [Z_vehicle, _all] call _HasKeyCheck;
};
};