The full inventory of opponent related properties.
P Available in Team ProS Available in Team Starter
Properties
Property Name
Type
Definition
Tier
Session.BestLapOpponentPosition
int
Leaderboard position of the driver with the session’s best lap
PS
Session.BestLapOpponentSameClassPosition
int
Leaderboard position of the driver with the best lap in the player’s class
PS
Session.MultiClass
bool
true when the session has more than one car class
PS
Opponents.Count
int
Number of cars in the session
PS
Opponents.ClassCount
int
Number of cars in the player’s class
PS
Opponents.Ahead
Array of string
Leaderboard positions of the cars ahead of the player on track, nearest first
PS
Opponents.AheadInClass
Array of string
Leaderboard positions of the cars in the player’s class ahead on track, nearest first
PS
Opponents.Behind
Array of string
Leaderboard positions of the cars behind the player on track, nearest first
PS
Opponents.BehindInClass
Array of string
Leaderboard positions of the cars in the player’s class behind on track, nearest first
PS
Leaderboard
The Opponent Leaderboard properties return an array, representing each driver on the leaderboard. Accessing the data is made easy with the TeamLINQ JS Functions
Property Name
Type
Definition
Tier
Opponents.DriverName
Array of string
Driver name
PS
Opponents.Id
Array of string
The driver’s unique id
PS
Opponents.Class
Array of string
Car class
PS
Opponents.ClassLabel
Array of string
Car class label from the car’s car data file, e.g. HYP; the sim’s class name until it’s known, or when the car isn’t in the car data
PS
Opponents.ClassColor
Array of string
Car class colour (from iRacing, assigned automatically in other games)
PS
Opponents.ClassColorText
Array of string
Text colour readable over the class colour, white or black
PS
Opponents.isPlayer
Array of string
true for the player’s own entry
PS
Opponents.Coordinates
Array of string
The car’s position on the track map
PS
Opponents.IsConnected
Array of string
true while the driver is connected to the session
PS
Opponents.Initials
Array of string
The driver’s initials
PS
Opponents.MapLayout
string
The track map layout the opponents are drawn on, compressed, sent by the streaming driver
PS
Opponents.TeamName
Array of string
Team name
P
Opponents.CarName
Array of string
Car name
P
Opponents.Number
Array of string
Car number
P
Opponents.License
Array of string
Licence string (iRacing only)
P
Opponents.iRating
Array of string
iRating (iRacing only)
P
Opponents.Category
Array of string
Driver category (ACC only)
P
Opponents.VE
Array of double
Virtual energy left, 0-1; null for classes without VE (LMU only)
P
Opponents.TyreCompound
Array of string
Front tyre compound name, e.g. Medium (LMU only)
P
Opponents.TyreWear
Array of double
Tread left in %, average of the four tyres (LMU only)
P
Opponents.Flags
Array of string
The car’s flags, comma-separated, empty when none. iRacing: BLACK, FURLED, REPAIR, BLUE, DQ. LMU: BLUE, YELLOW, PENALTY, DQ (iRacing and LMU only)
P
Opponents.Speed
Array of string
Car speed
P
Opponents.Position
Array of string
Overall position
PS
Opponents.ClassPosition
Array of string
Position in class
PS
Opponents.PositionGain
Array of string
Positions gained since the start of the race (negative when lost)
PS
Opponents.ClassPositionGain
Array of string
Class positions gained since the start of the race (negative when lost)
PS
Opponents.BestLapTime
Array of string
Best lap time this session
PS
Opponents.LastLapTime
Array of string
Last lap time
P
Opponents.LapTimeAverage5
Array of string
Lap time averaged over the last 5 clean laps this session (laps in the pit lane and the first lap seen don’t count); 00:00:00 until 5 laps
P
Opponents.CurrentLap
Array of string
The lap the driver is on
P
Opponents.CurrentLapPrecise
Array of string
The lap the driver is on, plus how far around it they are (12.45)
P
Opponents.TrackPosition
Array of string
How far around the lap the driver is, 0.0 to 1.0
P
Opponents.SectorIndex
Array of string
The sector the driver is in, starting from 1
P
Opponents.SectorsCurrentLap
Array of string
Sector times on the current lap, cumulative
P
Opponents.SectorsLastLap
Array of string
Sector times on the last completed lap, cumulative
P
Opponents.SectorsBestLap
Array of string
Sector times on the driver’s best lap, cumulative
P
Opponents.SectorsBestSplits
Array of string
The driver’s best time in each sector, from any lap
P
Opponents.PitCount
Array of string
Number of pit stops
P
Opponents.PitLapsSince
Array of string
Laps driven since the last pit exit (estimated)
P
Opponents.PitLastDuration
Array of string
Duration of the last pit stop
P
Opponents.IsOutLap
Array of string
true while the driver is on an out lap
P
Opponents.IsInPit
Array of string
true while the car is in its pit box
P
Opponents.IsInPitLane
Array of string
true while the car is in the pit lane
P
Opponents.IsInGarage
Array of string
true while the car is in the garage
P
Opponents.DeltaToPlayer
Array of string
Best lap delta to the player’s best lap, in seconds
P
Opponents.DeltaToBest
Array of string
Best lap delta to the session’s best lap, in seconds
PS
Opponents.GapToLeader
Array of string
Race gap to the overall leader
P
Opponents.GapToClassLeader
Array of string
Race gap to the class leader
P
Opponents.GapToPlayer
Array of string
Race gap to the player
P
Opponents.GapToPlayerRelative
Array of string
On-track gap to the player, in seconds, regardless of laps
P
Opponents.DistanceToPlayerRelative
Array of string
On-track distance to the player, regardless of laps