mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 00:05:34 +00:00
Lua: add onShutdown
This commit is contained in:
parent
0acbb70d10
commit
d18afdf84b
@ -48,6 +48,7 @@ int main(int argc, char** argv) {
|
||||
|
||||
bool Shutdown = false;
|
||||
Application::RegisterShutdownHandler([&Shutdown] { Shutdown = true; });
|
||||
Application::RegisterShutdownHandler([] { TriggerLuaEvent("onShutdown", false, nullptr, {}, true); });
|
||||
|
||||
TServer Server(argc, argv);
|
||||
TConfig Config;
|
||||
|
Loading…
x
Reference in New Issue
Block a user