Progetto H — API Reference API & Scripting Documentation
Static function Shared Fast

Events.UnsubscribeRemote

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

Syntax

Lua
Events.UnsubscribeRemote(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