mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-17 05:39:53 +00:00
Lua: add onShutdown
This commit is contained in:
@@ -48,6 +48,7 @@ int main(int argc, char** argv) {
|
|||||||
|
|
||||||
bool Shutdown = false;
|
bool Shutdown = false;
|
||||||
Application::RegisterShutdownHandler([&Shutdown] { Shutdown = true; });
|
Application::RegisterShutdownHandler([&Shutdown] { Shutdown = true; });
|
||||||
|
Application::RegisterShutdownHandler([] { TriggerLuaEvent("onShutdown", false, nullptr, {}, true); });
|
||||||
|
|
||||||
TServer Server(argc, argv);
|
TServer Server(argc, argv);
|
||||||
TConfig Config;
|
TConfig Config;
|
||||||
|
|||||||
Reference in New Issue
Block a user