onContainerOpen

Getting triggered when player opens a new container.

Prototypes
onContainerOpen(callback) -- callback = function(container, previousContainer)
Parameters
    • function(container, previousContainer): callback function
      • container: opened container object.
      • previousContainer: parent container object.
Usage
onContainerOpen(function(container, previousContainer)
	print(container:getName() .. " was opened.")
end)