One of the scripts I always come back to when running a server is the TimeTrials script found HERE!
I felt like it needed some updates and it seemed like an easy enough script to relearn LUA and learn the QBCore framework. See the original page for more information about the script itself.
New features:
- Countdown Timer (If you run out of time it cancels the time-trial.)
- Fuelpump Placement (For the RP servers, should help for custom ymaps)
- More Config Options (Blip settings, initial countdown time, countdown multiplier)
- Slight HUD refresh (all on screen timers and score displays converted from Seconds to Minutes:Seconds)
Starting with the QBCore framework the following plans for this remaster:
- Full QB integration (IN PROGRESS: Notifications and basic money payout currently)
- Re-color/re-work HUD (NUI overlay instead of DrawHudText)
- Item based (option to require item) item opens NUI menu to show players, tracks, and scores
- Variable payout based on length of track, time remaining, 1st place, etc.
- Class based leaderboards (TBA)
- and more?
Preview:
0.5 Preview
Link:
Github Download
2 Likes
Would be nice to get a video of the updates you’ve made. Interesting to see this oldie revived!
IMO the best way to run something like this is to access from an item or something like radial menu. I find the phone based stuff way to cumbersome, and not as organic as just using something on the spot to start a race.
Would recommend you work on this for QBox, a lot more you can do with ox_lib and Qbx_core.
I’ll post a preview once I get done adding some more to it. Finishing up a few things in the next few days on it.
1 Like
bro can u share with me how could you learn it so easily like I’m lost in this environment and there are no tutorials on YouTube and qbcore documentation are very bad
Update just posted, video uploading now. It doesn’t seem like much but getting the timeout timer added in will now make the payout system possible as people can’t abuse length between checkpoints.
New features:
- Countdown Timer (If you run out of time it cancels the time-trial.)
- Fuelpump Placement (For the RP servers, should help for custom ymaps
- More Config Options (Blip settings, initial countdown time, countdown multiplier)
- Slight HUD refresh (all on screen timers and score displays converted from Seconds to Minutes:Seconds)
Next I plan on focusing on the framework implementation and payout function. I don’t have to really worry about keeping up on a standalone version as we have the old script, so this will be more and more QB-core dependent going on in the future. The payout function should go quick then I can start adding the optional item based features, and Config settings to fix modded vehicles showing as NULL
Still welcome to any ideas or feature requests you all have.
The Codeium extension for VS Code helped me a lot along the way. I learn best by doing so being able to just ask how to do it, being shown, and given an example really helped. It’s been a great AI tool!