onContainerClose

Getting triggered when player closes a container.

onContainerClose(callback) -- callback = function(container, previousContainer)
Parameters
    • function(container, previousContainer): callback function
      • container: container object.
Usage

onContainerClose(function(container)
	print(container:getName() .. " was closed.")
end)