ServerShutdown
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; });