Advertisement
Guest User

PC2 member attributes

a guest
Oct 23rd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.72 KB | None | 0 0
  1. {
  2.   "result" : "ok",
  3.   "response" : {
  4.     "description" : "Gameplay attributes associated with a session's member (player)",
  5.     "list" : [
  6.       {
  7.         "name" : "VehicleId",
  8.         "type" : "int32",
  9.         "access" : "ReadOnly",
  10.         "description" : "Player's vehicle id. Latest vehicle list is available also via HTTP API at /api/list/vehicles and in Lua global tables lists.vehicles, id_to_vehicle and name_to_vehicle."
  11.       },
  12.       {
  13.         "name" : "LiveryId",
  14.         "type" : "int32",
  15.         "access" : "ReadOnly",
  16.         "description" : "Livery id used on the player's vehicle. Latest vehicle+liveries list is available via HTTP API at /api/list/liveries and in Lua global tables lists.vehicles, id_to_vehicle and name_to_vehicle. It is not included in the Values and Types documentation."
  17.       },
  18.       {
  19.         "name" : "LoadState",
  20.         "type" : "string",
  21.         "access" : "ReadOnly",
  22.         "description" : "Player's loading state. This is an internal variable with many possible states. There are two sets of states, one for the admin (host) player and another for clients, the states range from ready-for-sync to syncing to loading to ready."
  23.       },
  24.       {
  25.         "name" : "RaceStatFlags",
  26.         "type" : "int32",
  27.         "access" : "ReadOnly",
  28.         "description" : "Player's race stat flags. The flag values are available also via HTTP API at /api/list/flags/player or in Lua global tables lists.flags.player, PlayerFlags and value_to_player_flag."
  29.       },
  30.       {
  31.         "name" : "Ping",
  32.         "type" : "int16",
  33.         "access" : "ReadOnly",
  34.         "description" : "Player's ping to the dedicated server. This is the round trip time, so \"there and back\"."
  35.       }
  36.     ]
  37.   }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement