Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.02 KB

README.md

File metadata and controls

45 lines (36 loc) · 1.02 KB

FiveM Player List For Java!

Parses the players.json from FiveM.

Usage

Put these classes in your project and install dependencies. Then use the methods below to access parsed data!

Methods

	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];
	}

Librarys Needed

OKHTTP3 (3.11.0) - Grabbing JSON

http://square.github.io/okhttp/

Argo 5.4 - Parsing JSON

https://http://argo.sourceforge.net

Okio 1.13.0 - Needed for OKHTTP3

https://mvnrepository.com/artifact/com.squareup.okio/okio/1.13.0