Merge branch 'develop' of ssh://development.life-of-german.org:451/log-gtav/reallife-gamemode into develop

This commit is contained in:
michael.reiswich
2021-01-25 14:18:27 +01:00
4 changed files with 13 additions and 17 deletions

View File

@@ -609,16 +609,17 @@ namespace ReallifeGamemode.Server.Events
}
[RemoteEvent("keyPress:O")]
public void KeyPressJ(Player player)
public void KeyPressO(Player player)
{
if (!player.IsLoggedIn()) return;
List<Player> players = NAPI.Pools.GetAllPlayers();
var listPlayers = players.Select(p => new
{
Id = p.Handle.Value,
p.Name,
p.Ping,
});
var listPlayers = players.Select(p => new
{
Id = p.Handle.Value,
p.Name,
p.Ping,
FactionName = p.GetUser().Faction.Name,
}) ;
player.TriggerEvent("showPlayerlist", JsonConvert.SerializeObject(listPlayers));
}