OnShutdown

From Multi Theft Auto: Wiki
Revision as of 02:01, 22 December 2024 by FileEX (talk | contribs) (Created page with "__NOTOC__ {{Server event}} {{New feature/item|3.161|1.6.0|22837|This event is triggered when the server is about to be stopped using the server console or the shutdown function.}} ==Parameters== <syntaxhighlight lang="lua"> resource theResource, string reason </syntaxhighlight> *'''theResource:''' The resource that stops the server using the shutdown function. If the server is being stopped from the console, the '''resource''' is set to '''nil'''. *'''reaso...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.6.0 r22837:
This event is triggered when the server is about to be stopped using the server console or the shutdown function.

Parameters

resource theResource, string reason
  • theResource: The resource that stops the server using the shutdown function. If the server is being stopped from the console, the resource is set to nil.
  • reason: The reason for stopping the server (if provided).

Source

The source of this event is root.

Cancel effect

This event cannot be canceled.

Example

Accessories-text-editor.png Script Example Missing Event OnShutdown needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


See Also

Server events


Event functions