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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user