diff --git a/SQF/dayz_code/actions/AdvancedTrading/functions/DZE_deleteTradedVehicle.sqf b/SQF/dayz_code/actions/AdvancedTrading/functions/DZE_deleteTradedVehicle.sqf index 7ced7c5e8..589a02705 100644 --- a/SQF/dayz_code/actions/AdvancedTrading/functions/DZE_deleteTradedVehicle.sqf +++ b/SQF/dayz_code/actions/AdvancedTrading/functions/DZE_deleteTradedVehicle.sqf @@ -17,7 +17,7 @@ _containerFindKey = { }; if ((count _VehKey2) > 0) then { - if ((_VehKey2 select 0) == "0" || _delType in DZE_tradeVehicleKeyless) then { + if ((_VehKey2 select 0) == "0" || _delType in DZE_tradeVehicleKeyless || DZE_keepVehicleKey) then { _localResult2 = 1; } else { { @@ -65,4 +65,4 @@ if ((count _VehKey2) > 0) then { } else { _localResult2 = 0; }; -_localResult2; \ No newline at end of file +_localResult2; diff --git a/SQF/dayz_code/configVariables.sqf b/SQF/dayz_code/configVariables.sqf index 04b0afaec..03c4c396b 100644 --- a/SQF/dayz_code/configVariables.sqf +++ b/SQF/dayz_code/configVariables.sqf @@ -62,6 +62,7 @@ DZE_serverLogTrades = true; // Log trades to server RPT (sent with publicVariabl DZE_GemOccurance = [["ItemTopaz",10], ["ItemObsidian",8], ["ItemSapphire",6], ["ItemAmethyst",4], ["ItemEmerald",3], ["ItemCitrine",2], ["ItemRuby",1]]; //Sets how rare each gem is in the order shown when mining (whole numbers only) DZE_GemWorthArray = [["ItemTopaz",15000], ["ItemObsidian",20000], ["ItemSapphire",25000], ["ItemAmethyst",30000], ["ItemEmerald",35000], ["ItemCitrine",40000], ["ItemRuby",45000]]; // Array of gem prices, only works with config traders. Set DZE_GemWorthArray=[]; to disable return change in gems. DZE_SaleRequiresKey = false; // Require the player has the key for a vehicle in order to sell it. The key can be in the player's toolbelt, backpack, or the vehicle's inventory. +DZE_keepVehicleKey = false; // Keep the vehicle key when the vehicle is sold? (Useful on servers with the key changer mod) DZE_TRADER_SPAWNMODE = false; // Vehicles purchased at traders will be parachuted in Z_VehicleDistance = 40; // Max distance a vehicle can be sold or accessed from at a trader. Z_AllowTakingMoneyFromBackpack = true; // Allow traders to take money from backpacks when buying with default currency.