nanos world API Reference Unofficial documentation
Static function Shared Fast

Package.Unsubscribe

Unsubscribes from all subscribed Events in this Class and in this Package, optionally passing the function to unsubscribe only that callback

Syntax

Lua
Package.Unsubscribe(event_name, callback = nil)

Parameters

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