From 8a46eded943e4985037d159d5ba047518c04d55e Mon Sep 17 00:00:00 2001 From: VegaZ Date: Fri, 5 Oct 2018 20:06:30 +0200 Subject: [PATCH] Rewrite of playerlist (not working) --- Client/Gui/playerlist.js | 1 + Client/Gui/script.js | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 Client/Gui/script.js diff --git a/Client/Gui/playerlist.js b/Client/Gui/playerlist.js index 21b1e65d..bc24759c 100644 --- a/Client/Gui/playerlist.js +++ b/Client/Gui/playerlist.js @@ -24,6 +24,7 @@ mp.events.add("fetchPlayerList", (playersJson) => { }); }); + //function getTable() { // var table = ""; // pList.forEach((player) => { diff --git a/Client/Gui/script.js b/Client/Gui/script.js new file mode 100644 index 00000000..6e54688e --- /dev/null +++ b/Client/Gui/script.js @@ -0,0 +1,8 @@ +$(document).ready(function () { + + mp.trig + + for (var player in pList) { + $("#playerData").append("" + player.Id + "" + player.Name + "" + player.Ping + ""); + } +}); \ No newline at end of file