Thank you, hopefully below helps answer some of your questions.
- The leaderboard is designed to show the top one time for each car and the driver who set it, try setting a time with a different car and it should show up. The idea is that it’s mainly to compare car performance but drivers also get credit for setting that time (otherwise it would be top 100 times all supercars ). You would need to modify the code if you wanted to save more scores for the same car or anything else.
- Is this an add-on car? If it is you’ll need to make sure you set the name string as detailed here. I’ll probably change it to grab the short name if NULL whenever I go back and make changes.
- You can modify the part of the code the draws the time to screen, haven’t tried it but changing line 220 to something like this might work, similar for scores just mess around with it.
local raceTimeSeconds = (GetGameTimer() - raceState.startTime) / 1000
local raceTimeMinutes = math.floor(raceTimeSeconds/60)
raceTimeSeconds = raceTimeSeconds - 60*raceTimeMinutes
DrawHudText(("%f:%2.3f"):format(raceTimeMinutes, raceTimeSeconds), RACING_HUD_COLOR, 0.015, 0.725, 0.7, 0.7)