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