you can edit the leaderboard yourself. just edit those fields you want to be shown all the time and edit the green visible fx field, and remove the code in that.How strange. I'll report to the mod author and see what they say.
Was there a way to hide the "#null" but keep the race position in the relative (first column)? See my last screenshot; only my race position is shown.
So it should work in both the leaderboard (to show which tyres are my opponents using) and the main tyres widget right?I think so, have never experienced otherwise. But it has problem showing oil and water temps from most s397 cars because rf2 api dont expose those info from these cars.
var CurrentPos = $prop('DataCorePlugin.GameData.NewData.Position');
var compoundText = "";
var CurrentName = drivername(1);
if (CurrentPos <= 9){CurrentPos = '0' + CurrentPos}
compoundText = $prop('GarySwallowDataPlugin.Leaderboard.Position' + CurrentPos + '.Telemetry.TyreCompound')
if(compoundText == 'S7M (Soft)'){return 'S'};
if(compoundText == 'Slick N2'){return 'S'};
if(compoundText == 'SLICK CPM'){return 'S'};
if(compoundText == 'S8M (Medium)'){return 'M'};
if(compoundText == 'S9M (Hard)'){return 'H'};
if(compoundText == 'H5M (Inter)'){return 'I'};
if(compoundText == 'P2M (Rain)'){return 'W'};
if(compoundText == 'P9M (Rain)'){return 'W'};
if(compoundText == 'Rain N2'){return 'W'};
var CurrentPos = $prop('DataCorePlugin.GameData.NewData.Position');
var compoundText = "";
var CurrentName = drivername(1);
if (CurrentPos <= 9){CurrentPos = '0' + CurrentPos}
compoundText = $prop('GarySwallowDataPlugin.Leaderboard.Position' + CurrentPos + '.Telemetry.TyreCompound')
var compoundTextlow = lcase(compoundText);
if(compoundTextlow.indexOf('qual') >= 0){return 'Q'};
if(compoundTextlow.indexOf('slick') >= 0){return 'S'};
if(compoundTextlow.indexOf('soft') >= 0){return 'S'};
if(compoundTextlow.indexOf('race') >= 0){return 'R'};
if(compoundTextlow.indexOf('road') >= 0){return 'R'};
if(compoundTextlow.indexOf('medium') >= 0){return 'M'};
if(compoundTextlow.indexOf('hard') >= 0){return 'H'};
if(compoundTextlow.indexOf('inter') >= 0){return 'I'};
if(compoundTextlow.indexOf('wet') >= 0){return 'W'};
if(compoundTextlow.indexOf('rain') >= 0){return 'W'};
secondstotimespan(
(
timespantoseconds([DataCorePlugin.GameData.NewData.Sector1BestTime])+
timespantoseconds([DataCorePlugin.GameData.NewData.Sector2BestTime])+
timespantoseconds([DataCorePlugin.GameData.NewData.Sector3BestTime])
)
)
secondstotimespan(
(
timespantoseconds([Sector1Time])+
timespantoseconds(isnull([Sector2Time],[DataCorePlugin.GameData.NewData.Sector2BestTime]))+
timespantoseconds([DataCorePlugin.GameData.NewData.Sector3BestTime])
)
)