nanos world API Reference Unofficial documentation
Static function Shared Fast

Entity.SubscribeRemote

Subscribes to a custom event called from server

Syntax

Lua
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)