diff --git a/ReallifeGamemode.Client/Gui/playerlist.ts b/ReallifeGamemode.Client/Gui/playerlist.ts index 5e30dd01..e4be88ad 100644 --- a/ReallifeGamemode.Client/Gui/playerlist.ts +++ b/ReallifeGamemode.Client/Gui/playerlist.ts @@ -16,7 +16,7 @@ export default function playerList() { mp.gui.cursor.show(true, true); pList = JSON.parse(playersJson); pList.forEach((player) => { - playerlistBrowser.execute(`ad_row('${JSON.stringify(player.Id)}','${JSON.stringify(player.Name)}',0,'${JSON.stringify(player.fac)}','${JSON.stringify(player.Ping)}');`); + playerlistBrowser.execute(`ad_row('${JSON.stringify(player.Id)}','${JSON.stringify(player.Name)}',0,0,'${JSON.stringify(player.Ping)}');`); }); } else { playerlistBrowser.destroy(); diff --git a/ReallifeGamemode.Client/assets/html/Playerlist/script.js b/ReallifeGamemode.Client/assets/html/Playerlist/script.js index 3ddc1f80..5cd805e7 100644 --- a/ReallifeGamemode.Client/assets/html/Playerlist/script.js +++ b/ReallifeGamemode.Client/assets/html/Playerlist/script.js @@ -16,7 +16,7 @@ function ad_row(id, name, level, faction, ping) { td1.innerHTML = ''+id; td2.innerHTML = name.slice(1, -1); td3.innerHTML = 'WIP'; - td4.innerHTML = ''+faction; + td4.innerHTML = 'WIP'; td5.innerHTML = ''+ping; tr.appendChild(td1); tr.appendChild(td2); diff --git a/ReallifeGamemode.Server/Events/Key.cs b/ReallifeGamemode.Server/Events/Key.cs index 80b93763..d5418fd7 100644 --- a/ReallifeGamemode.Server/Events/Key.cs +++ b/ReallifeGamemode.Server/Events/Key.cs @@ -305,7 +305,6 @@ namespace ReallifeGamemode.Server.Events Id = p.Handle.Value, p.Name, p.Ping, - fac = p.GetUser().Faction.Name }); player.TriggerEvent("showPlayerlist", JsonConvert.SerializeObject(listPlayers)); }