nanos world API Reference Unofficial documentation
Static function Client Fast

Viewport.Subscribe

Subscribes to an Event

Syntax

Lua
Viewport.Subscribe(event_name, callback)

Parameters

Name Type Default Description
event_name string Event to subscribe to
callback function Callback to run on the event occurring

Returns

  • function The function callback