Skip to content

1. Fetch stats using GET

libertylocked edited this page Dec 3, 2021 · 5 revisions

Fetch stats using GET

  • To fetch real-time game statistics in JSON format, simply GET from /pull
  • In case you don't have access to the game, a set of dummy data is available on /dummy
  • If the plugin hasn't connected to the server yet, you will get a string "NO_DATA"

Be sure you check if player is in a vehicle before you do any of the vehicle stuff

if (json["VehicleName"]) {
  // TODO: Vehicle stuff
}
Clone this wiki locally