nanos world API Reference Unofficial documentation
Static function Shared Fast

Events.Unsubscribe

Removes a local event listener previously registered with <code>Events.Subscribe()</code>. If no specific callback function is passed, it removes ALL local listeners for that event name in the current Package

Syntax

Lua
Events.Unsubscribe(event_name, callback = nil)

Parameters

Name Type Default Description
event_name string The Event Name to unsubscribe
callback optional function nil The callback function to unsubscribe