Skip to main content

defer

Registers a function to be called at lua shutdown/reload, equivalent to client.set_event_callback("shutdown", callback).

defer(callback)

Arguments

NameDescriptionType
callbackThe function to execute on shutdown.function