Skip to main content

client.set_event_callback

Registers the function as a callback for the specified event. It can be removed later using client.unset_event_callback.

client.set_event_callback(event_name: string, callback)

Arguments

NameDescriptionType
event_nameName of the event.string
callbackLua function to call when this event occurs.function