Rewrite of playerlist (not working)
This commit is contained in:
@@ -24,6 +24,7 @@ mp.events.add("fetchPlayerList", (playersJson) => {
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
//function getTable() {
|
||||
// var table = "";
|
||||
// pList.forEach((player) => {
|
||||
|
||||
8
Client/Gui/script.js
Normal file
8
Client/Gui/script.js
Normal 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>");
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user