• Subscribe a script for PlugHub events. After subscribing the script will be launched for each event happens on a PlugHub addon and information about this event will be passed as a parameter.
Edit
Edit
  • params: script name (string).
Edit
  • return: none.
Edit
				
					 local plughub = require "plughub"

    plughub.subscribe( "HUB:plughub/scripts/events_handling" )