Add kick, fix cmakelists pretending to be on linux all the time

lol
This commit is contained in:
Lion Kortlepel
2021-11-29 01:34:35 +01:00
parent 19d67dee95
commit 8f77f1c8c0
3 changed files with 41 additions and 8 deletions

View File

@@ -460,7 +460,7 @@ TLuaEngine::StateThreadData::StateThreadData(const std::string& Name, std::atomi
MPTable.set_function("TriggerClientEvent", &LuaAPI::MP::TriggerClientEvent);
MPTable.set_function("GetPlayerCount", &LuaAPI::MP::GetPlayerCount);
MPTable.set_function("IsPlayerConnected", &LuaAPI::MP::IsPlayerConnected);
MPTable.set_function("GetPlayerIDByName", [&](const std::string& Name) -> std::string {
MPTable.set_function("GetPlayerIDByName", [&](const std::string& Name) -> int {
return Lua_GetPlayerIDByName(Name);
});
MPTable.set_function("GetPlayerName", [&](int ID) -> std::string {