The InventoryOpened event fires when the player opens the inventory of a container, which works perfect. What we are missing in this event handlers is the secondary container being passed to that event. Currently, there is no reliable way to identify the secondary container of RscDisplayInventory when the player opens the inventory dialog.
https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#InventoryOpened