Parses the players.json from FiveM.
Put these classes in your project and install dependencies. Then use the methods below to access parsed data!
public String getNameAndId(int listNumber) {
return (players[listNumber] + " " + playerId[listNumber]);
}
public String getName(int listNumber) {
return players[listNumber];
}
public String getId(int listNumber) {
return playerId[listNumber];
}
public int playerCount() {
return PlayerCount;
}
public String getSteamIdentifier(int listNumber) {
return identifier[listNumber][0];
}
public String getLicenseKey(int listNumber) {
return identifier[listNumber][1];
}
public String getEndpoint(int listNumber){
return plyEndpoint[listNumber];
}
http://square.github.io/okhttp/
https://http://argo.sourceforge.net
https://mvnrepository.com/artifact/com.squareup.okio/okio/1.13.0