Static function
Fast
Events.Subscribe
Listens for a local custom Event triggered by <code>Events.Call()</code> on the same side
Syntax
Events.Subscribe(event_name, callback)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
event_name
|
string | — | The Event Name to subscribe |
callback
|
function | — | The callback function to execute |
Returns
- function the subscribed callback itself