Kallock,
I just released the driving mods I’ve been using if you want to check them out [Release] RealisticVehicles - Realistic vehicle handling, speed, and more [v1.10]
Kallock,
I just released the driving mods I’ve been using if you want to check them out [Release] RealisticVehicles - Realistic vehicle handling, speed, and more [v1.10]
Hello!
The first thing is to congratulate you for your great work Brent_Peterson. Above all, the Nurburgring-Nordschleife circuit is impressive.
I would like to ask you some things about Timetrials.
-How can I set the time records at the checkpoint so that 1st, 2nd, 3rd …? I only get the fastest time, the rest of time does not show me.
-How can I do to show me the name of the car instead of “NULL”?
-Could I change the format of the times to minutes, seconds and thousandths?
Thank you!
Thank you, hopefully below helps answer some of your questions.
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)
NULL, are probably mod vehicles
idea for you:
and with modded vehicles I also have the NULL problem in the leaderboard
great share thx;)
The directions in this post should fix it, all the add-on vehicles work fine for me Can someone clarify vehicle_names.lua hash question for me?
So I don’t really get it. The " * Teleport to waypoint (L key when not racing) " function is just teleporting you around the map when not racing? So it’s Teleport to waypoint right? If this is the case will anything happen if I remove it? I didn’t try this release yet but it sounds cool. Correct me if I said anything wrong. Thanks!
Thanks for the quick reply!
I have tried what you have told me with good results.
And a question I have: Are the times saved in the file or directory? (In case some time is not valid I could erase it)
Thank you!
I already found the file scores.txt where it saves the times.
I would like to know if I can eliminate the zeros as indicated in the previous post.
Could you give me an idea Brent_Peterson?
Thank you!
You need to play with the printf formatting to change how it prints to the screen, maybe something like this instead?
("%02d:%02.3f"):format(raceTimeMinutes, raceTimeSeconds)
Perfect! It worked well, and I only get two zeros in the minute numbers. I’m trying with “% 2d:% 02.3f” and I get a single zero at the beginning. As the chronometer increases, one more number is added to the minutes without any problem. I’m currently testing what happens after 99 minutes …
Sorry for my ignorance, I’m new to this and I try to learn almost from scratch so I’m very grateful when I get help like yours.
How would one reset the leaderboard? No idea where this file is
Deleting the scores will reset the leaderboards. The scores.txt file will be wherever your server is started from, for me that’s the same folder as server.cfg.
Ahhh, I should’ve noticed that, thanks!
how i can change the position from the HUD?
Hi ! how i can block F2 button (noclip) becouse players can fly by all points on track in a few seconds and put an unbeatable record.I count on a quick response as well as best regards
What kind of server you own? Why do you let players use the lambda menu?
Just disable the scripthook in the server.cfg and you’ll be ok.
i have two drift servers and i need noclip, I have always been able to solve problems but now even if it seems to be good reworked it does not work
I’d say, if you really have to keep that noclip in your server, you have to count on people’s common sense…
so whether it is possible to rework ? or you can not lock the keys of another script (vMenu) when you start race ? if possible, I will try again