From db5861da52633891b963ac2e011ba04219e40e30 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Fri, 10 Apr 2015 13:05:34 -0500 Subject: [PATCH] #428 - GJ Git --- addons/vehiclelock/functions/fnc_lockpick.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/vehiclelock/functions/fnc_lockpick.sqf b/addons/vehiclelock/functions/fnc_lockpick.sqf index d268646b8b..fc7fecc693 100644 --- a/addons/vehiclelock/functions/fnc_lockpick.sqf +++ b/addons/vehiclelock/functions/fnc_lockpick.sqf @@ -27,6 +27,8 @@ PARAMS_3(_unit,_veh,_funcType); if (isNull _unit) exitWith {ERROR("null unit"); false}; if (isNull _veh) exitWith {ERROR("null vehicle"); false}; +//Exit if vehicle unlocked: +if ((locked _veh) == 0) exitWith {false}; //need lockpick item if (!("ACE_key_lockpick" in (items _unit))) exitWith {false};