mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-04-03 15:06:00 +00:00
Fix more compile issues with lua, add TriggerGlobalEvent
This commit is contained in:
@@ -159,7 +159,10 @@ TLuaEngine::StateThreadData::StateThreadData(const std::string& Name, std::atomi
|
||||
[this](const std::string& EventName, const std::string& FunctionName) {
|
||||
RegisterEvent(EventName, FunctionName);
|
||||
});
|
||||
Table.set_function("");
|
||||
Table.set_function("TriggerGlobalEvent",
|
||||
[&](const std::string& EventName) {
|
||||
return mEngine->TriggerEvent(EventName);
|
||||
});
|
||||
Table.create_named("Settings",
|
||||
"Debug", 0,
|
||||
"Private", 1,
|
||||
|
||||
Reference in New Issue
Block a user