fix onlinelist

This commit is contained in:
Luke
2021-04-20 17:49:13 +00:00
parent 2a88e48d42
commit 9d567cca26

View File

@@ -13,17 +13,30 @@ setPlayerCount = (factionId, value) => {
} }
function getFactionNameByFactionId(factionId) { function getFactionNameByFactionId(factionId) {
var factionName = "";
switch (factionId) { switch (factionId) {
case 1: return "LSPD"; case 1:
case 2: return "LSED"; factionName = "LSPD"; break;
case 3: return "FIB"; case 2:
case 4: return "Trucker"; factionName = "LSED"; break;
case 5: return "Vagos"; case 3:
case 7: return "Grove Street"; factionName = "FIB"; break;
case 8: return "Ballas"; case 4:
case 9: return "Weazle News"; factionName = "Trucker"; break;
default: return "Zivilisten"; case 5:
factionName = "Vagos"; break;
case 7:
factionName = "Grove Street"; break;
case 8:
factionName = "Ballas"; break;
case 9:
factionName = "Weazle News"; break;
default:
factionName = "Zivilisten"; break;
} }
return factionName;
} }
function addPlayerEntry(userId, userName, factionId, userPing) { function addPlayerEntry(userId, userName, factionId, userPing) {