[FREE] - [QB/QBOX] Midnight Club Time Trials - Street racing script

:checkered_flag: Midnight Club - Time Trials with Wagers :trophy:

mnc-timetrials-logo

:vertical_traffic_light: Overview

Welcome to Midnight Club Time Trials – bring the thrill of wager-based racing to your FiveM server! Challenge players to beat the clock, risk their cash, bank, or crypto, and unlock exclusive rewards! Fully compatible with QBCore, packed with customization, UI of your choice, and plenty of racing attitude.
Get started, get paid, get respect.


:sparkles: Features

  • :racing_car: Multiple Custom Races – Set up unique routes, vehicles, and challenges in config.lua.
  • :money_with_wings: Buy-ins & Payouts – Race for cash, bank, or crypto. The bigger the buy-in, the bigger the rewards!
  • :gift: Rewards & Required Items – Win items for completing race streaks and require special items for entry (e.g., VIP Race Pass).
  • :no_entry_sign: Vehicle Restrictions & Blacklist – Limit races to certain vehicles or classes, block the fastest cars for fair play.
  • :joystick: Dynamic UI – Vibrant, pulsing race info overlay; customizable and movable.
  • :bust_in_silhouette: NPC & Vehicle Spawns – Each race can spawn a character and a display vehicle at the start point.
  • :bell: Proximity Taunts – Get hyped or roasted as you approach races!
  • :joystick: Flexible Interaction – Supports both β€œPress E” prompts.
  • :stopwatch: Cooldowns & Progress Tracking – Prevent spam, track your wins, and earn streak rewards.
  • :hammer_and_wrench: Easy Commands – Admin commands for quick setup and cleanup (see below).
  • :gear: Easy Setup & Expansion – All configuration in one file, add races in minutes!

:memo: Setup

  1. Dependencies:

    • QBCore Framework
    • ox_lib
    • oxmysql
  2. Installation:

    • Place the folder in your resources directory.
    • Add ensure mnc-timetrials to your server config.
    • Make sure dependencies start first!
  3. Configuration:

    • Edit config.lua to set up races, buy-ins/buyouts, rewards, vehicles, NPCs, and more.
    • Customize proximity taunts, blip names, and cooldowns.

:moneybag: Buy-ins, Payouts, Rewards & Required Items

Each race offers multiple wager tiers.
Players choose their buy-in (cash, bank, or crypto) and receive payouts plus progress toward item rewards!

Example Wager Tier (from config.lua):

wagers = {
    {
        amount = 2000,          -- πŸ’΅ Buy-in
        name = "Easy",          -- Difficulty
        timeModifier = 0,       -- Time bonus
        payout = 4000,          -- πŸ€‘ Payout
        paymentType = "cash",   -- Type: cash/bank/crypto
        rewardItem = { name = "tunerchip", amount = 1 }, -- 🎁 Item reward
        requiredItem = { name = "phone", amount = 1 },   -- πŸ›‘οΈ Required to enter
        requiredRaces = 3       -- ✨ Complete streak for item
    },
    -- ...more tiers!
}
  • Required Items: Some races need special items (e.g. VIP Race Pass).
  • Rewards: Win cash, crypto, or exclusive items after a set number of wins.
  • Progress: Race completion tracked per player, per wager.

:red_car: Vehicle Classes & Blacklist.

  • Restrict races to certain vehicle classes (e.g. only Compacts).
  • Automatically block the top 10 fastest cars in each class for balanced competition.
  • Set a required vehicle model for themed races!
  • Blacklist & Classes are fully customizable in config.lua.

:video_game: Commands & Usage

  • Start a Race:
    Drive to a race marker, press E or use the qb-target zone to open the UI.
  • Select Wager:
    Choose your buy-in, see the time limit, and accept the challenge.
  • Complete the Race:
    Beat the clock to win your payout and progress toward item rewards!

:hammer_and_wrench: Customization

  • Add Races: Copy/paste a race entry in Config.Races and set locations, vehicles, rewards, etc.
  • Change UI: Edit UI HTML/CSS for a custom look.
  • Tweak Difficulty: Adjust time limits, payouts, required items, and vehicle restrictions.
  • Edit Taunts: Make your server’s races as friendly or savage as you like!


  • Original Ui
    a-original


  • basic-1
    basic-1


  • basic-2
    basic-2


  • basic-3
    basic-3


  • basic-4
    basic-4


  • simple-1
    simple-1


  • simple-2
    simple-2


  • simple-3
    simple-3


  • simple-4
    simple-4

:pray: Credits

  • Developed by Stan Leigh
  • Inspired by classic street racing and time trial games

:sos: Support

Open a GitHub issue for help, suggestions, or bug reports!


Start your engines. Bet big. Race hard. Win respect.


Code is accessible | Yes |

Subscription | No |

Support | Yes |


8 Likes

if you make a race please send it to me so i can add them into the resource, only limit is your imagination.

1 Like

video? and does this work for ox-inventory?

how can you make to be able to race any vehicle and not what required?

This is Awesome!! If you could bring back all the Midnight Club 2,3 scripts I would be willing to pay for them. Specifically the races with NPC cars like the Midnight club races and their arcade modes like Vehicle Tag/Capture the Flag and Driving on 2 wheels :fire:

Not at the moment as I don’t use it, I can if you want to help test

sure no problem

i will be making a few midnight club style scripts, join discord so we can discuss things in depth please

3 Likes

can you make it work for ox inventory? and let me know when its updated?

1 Like

it works for ox inv

1 Like

only need to convert the items if using the tunex software otherwise just change reward item to something in your server

thankyou, is there a way to put any car for the race rather than a required one?

whats the discord interested

Does this also work for Qbox?

1 Like

yes sir, you could’ve check comments that way you wouldn’t have had to comment.

the link is invalid

Midnight Club Development. My bad only did a 7day link