OnServerShutdown

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 22:32, 14 August 2026 by QCherry (talk | contribs) (Update Lua event reference)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

onServerShutdown

Triggered while the multiplayer server is beginning an orderly shutdown.

Availability

This event is available in server-side scripts.

Callback signature

onServerShutdown()

Parameters

This event does not pass parameters to its handler.

Examples

Handle the event:

addEventHandler("onServerShutdown", root, function()
    outputDebugString("Server shutdown requested")
end)

Notes

  • Keep shutdown handlers short; persistence work should normally be performed continuously.