#cp.config.shutdownCallback

Shutdown Callback Module.


#API Overview

Methods - API calls which can only be made on an object returned by a constructor


#API Documentation

#Methods

Signaturecp.config.shutdownCallback:callbackFn() -> function
TypeMethod
DescriptionReturns the callbackFn of the current Shutdown Callback
Parameters
  • None
Returns
  • The callbackFn of the current Shutdown Callback
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/config/init.lua line 403

Signaturecp.config.shutdownCallback:get(id) -> table
TypeMethod
DescriptionCreates a new Shutdown Callback.
Parameters
  • id - The unique ID for the callback you want to return.
Returns
  • table containing the callback
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/config/init.lua line 364

Signaturecp.config.shutdownCallback:getAll() -> table
TypeMethod
DescriptionReturns all of the created Shutdown Callbacks
Parameters
  • None
Returns
  • table containing all of the created callbacks
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/config/init.lua line 377

Signaturecp.config.shutdownCallback:id() -> string
TypeMethod
DescriptionReturns the ID of the current Shutdown Callback
Parameters
  • None
Returns
  • The ID of the current Shutdown Callback as a string
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/config/init.lua line 390

Signaturecp.config.shutdownCallback:new(id, callbackFn) -> table
TypeMethod
DescriptionCreates a new Shutdown Callback.
Parameters
  • id - The unique ID for this callback.
  • callbackFn - The callback function
Returns
  • table that has been created
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/config/init.lua line 337