Hi Everyone,
Firstly I am not efficient in this or any type of coding whatsoever.
I have been just messing about trying to make dashboards for my own use.
Please could someone assist me as I cannot figure out how to do this.
I have written code for all the car brands with images. Everything is working well.
there is only one car that I cant get right cause it has an apostrophe in the name.
So it keeps coming back with an error. below is just a quick example of it in bold.
How do I do this?
Thanks
Jean
var raceposition = getopponentleaderboardposition_aheadbehind(0)
var Aston = 'C:\\Program Files (x86)\\SimHub\\ImageLibrary\\Aston.png'
var carname = $prop('CarModel')
if(carname=='D'station Racing'){return Aston}
if(carname=="D'station Racing"){return Aston}