Rewrite of playerlist (not working)

This commit is contained in:
VegaZ
2018-10-05 20:06:30 +02:00
parent 60688d2178
commit 8a46eded94
2 changed files with 9 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ mp.events.add("fetchPlayerList", (playersJson) => {
});
});
//function getTable() {
// var table = "";
// pList.forEach((player) => {

8
Client/Gui/script.js Normal file
View File

@@ -0,0 +1,8 @@
$(document).ready(function () {
mp.trig
for (var player in pList) {
$("#playerData").append("<tr><td>" + player.Id + "</td><td>" + player.Name + "</td><td>" + player.Ping + "</td></tr>");
}
});