From f900ee4520e402a17e9382ae9b2d2c8802d2e1a1 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Thu, 5 May 2016 11:39:18 -0400 Subject: [PATCH] Add isInTraderCity to BackpackAntiTheft check --- SQF/dayz_code/compile/fn_gearMenuChecks.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/fn_gearMenuChecks.sqf b/SQF/dayz_code/compile/fn_gearMenuChecks.sqf index e17b2f4f7..59a9c3bbd 100644 --- a/SQF/dayz_code/compile/fn_gearMenuChecks.sqf +++ b/SQF/dayz_code/compile/fn_gearMenuChecks.sqf @@ -15,7 +15,7 @@ if ((vehicle player) == player) then { if (DZE_BackpackAntiTheft) then { _friendlies = player getVariable ["friendlies",[]]; _rcharID = _cTarget getVariable ["CharacterID","0"]; - if (!canbuild && {_cTarget isKindOf "Man"} && {alive _cTarget} && {isPlayer _cTarget} && {!(_rcharID in _friendlies)} && {(player distance _cTarget) < 12}) then { + if ((!canbuild or isInTraderCity) && {_cTarget isKindOf "Man"} && {alive _cTarget} && {isPlayer _cTarget} && {!(_rcharID in _friendlies)} && {(player distance _cTarget) < 12}) then { localize "STR_EPOCH_PLAYER_316" call dayz_rollingMessages; _display closeDisplay 1; };