Due to increasing spam attacks, forum registrations are currently paused to keep our community safe and spam-free. Come hang out and stay connected with us on the SimHub Discord: https://discord.com/invite/nBBMuX7!
Catch you on Discord — and thanks for understanding!
Catch you on Discord — and thanks for understanding!
Notifications
Clear all
Topic starter
20/01/2022 4:23 pm
Hi Guys!
I'm working on a small overlay, which shall determine the amount of fuel to refill to get to the finish line.
The issue is: The number of laps of a race depends on the remaining session time, the leader pace and its track position.
I wanted to write a function in javascript, but there is no property that allows me to extract the lap times of the leader or his position. How is it possible that SimHub is able to depict the leaderboard (there are all necessary information for my issue)?
Is there an option to write a javascript function in a text component and get access to the text of a different component (e.g. leaderboard)?
Thanks a lot for your help!
Best, Jakob