ServerShutdown

From RAGE Multiplayer Wiki
Revision as of 19:40, 9 November 2020 by Ragempdev (talk | contribs) (Reverted edits by Vaker (talk) to last revision by Unknown)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Server-Side
Event

 JavaScript



This event is triggered when the server is shutting down.

JavaScript Syntax

Example

mp.events.add("serverShutdown", async () =>
{
  mp.events.delayShutdown = true;
  await yourAsyncFunction();
  mp.events.delayShutdown = false;
});



See also