nanos world API Reference Unofficial documentation
Static function Server Fast

Server.Subscribe

Subscribes for an Event

Syntax

Lua
Server.Subscribe(event_name, function)

Parameters

Name Type Default Description
event_name string The name of the Event
function function Callback function

Returns

  • function the function callback itself