Function
Fast
Entity:SubscribeRemote
Subscribes to a custom event called from server on this specific entity
Syntax
my_entity:SubscribeRemote(event_name, callback)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
event_name
|
string | — | Name of the event to subscribe to |
callback
|
function | — | Function to call when the event is triggered |
Returns
- function Callback that was passed (useful for unsubscribing later if your callback is an anonymous function)