player addEventHandler ["InventoryOpened", {
params ["_unit", "_container"];
if (_container isKindOf "Man" && { _container != _unit }) then {
if (!(_container getVariable ["restrained", false])) exitWith {
hint "Accès au sac interdit (cible non menottée).";
true
};
};
false
}];