mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
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:
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user