From 21f35dc7d09153d54af6e0016a2edc68339ca997 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Sat, 3 Oct 2015 19:42:40 -0500 Subject: [PATCH] #2664 - Disable loading into locked vehicles. --- addons/cargo/functions/fnc_canLoad.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/cargo/functions/fnc_canLoad.sqf b/addons/cargo/functions/fnc_canLoad.sqf index f5d1304a95..f18ceb5835 100644 --- a/addons/cargo/functions/fnc_canLoad.sqf +++ b/addons/cargo/functions/fnc_canLoad.sqf @@ -31,4 +31,6 @@ if (_nearestVehicle isKindOf "Cargo_Base_F" || isNull _nearestVehicle) then { if (isNull _nearestVehicle) exitWith {false}; +if ((locked _nearestVehicle) >= 2) exitWith {false}; + [_object, _nearestVehicle] call FUNC(canLoadItemIn)