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
Simhub General
1
Posts
1
Users
0
Reactions
1,011
Views
Topic starter
16/08/2024 11:28 am
I would like to create a gif-type animation if the distance between me and the person ahead/behind increses/decreses. Since SimHUB doesn't support gif I was woundering if this could be done with JS?
Something like this:
var gapAhead = $prop('IRacingExtraProperties.iRacing_NonRelativeDriverAheadInClass_00_GapChangeLastLap')
if (gapAhead >= 0) {
return 'The JS-script would go here'
}
else {
return 'Same JS-script, but with other images'
}