Free racing system for FiveM, by m-Scripts
RACE

Line up. Bet. Floor it.

Races, bets, tournaments, crews and leaderboards in one free script. Every race runs in its own world, with no NPCs and no traffic.

A car on the grid with the countdown lights at 4
All five lights on and GO on the screen
An empty city street at night during a race
A red checkpoint gate across the road
Two cars side by side under a bridge
The wrong way warning on the race HUD
The out of the race area warning
A drift score of 7,736 points over the car
Chain lost after hitting a barrier mid drift
The results card after a first place finish
01The grid

Lights on.
Cars locked.

Drivers are moved to their grid spot and held there through the countdown. Turn the lock off and an early launch costs a false start penalty instead.

02Launch

Five lights.
Then go.

The countdown lights fill one by one. On green the timer starts for everyone at once.

03Own world

No traffic.
No NPCs.

Every race runs in its own routing bucket, with only the racers in it. When the race ends, everyone goes back to their world.

04Checkpoints

Real gates.
Tyres on both ends.

Red and white tyre stacks mark each gate, and the GPS on the minimap routes you to the next one. Miss one and time is added.

05The fight

Every split.
Every gap.

The race HUD shows your position, laps, splits and the gap to the car ahead and behind, with a live board of the whole field.

06Wrong way

Turn around.
Now.

Drive the wrong way and the HUD tells you straight away. The next checkpoint is behind you.

07The area

No shortcuts.
Off the route, out.

Leave the route and a warning starts. Stay out too long and you are disqualified. Same for leaving the car.

08Drift

Angle times speed.
Keep it sideways.

In drift mode points come from your angle and your speed. The chain grows while you slide, with a multiplier up to x5.

09The crash

Hit the wall.
Lose the chain.

Points are only safe once you straighten up and bank them. Touch anything before that and the chain is gone.

10The finish

Checked by
the server.

Times, prizes, bets, XP and ELO are worked out on the server, then the results card shows where you finished.

The racing app

One app.
The whole scene.

Players open the app with a command, a key or an item. Races, lobbies, tracks, rankings and crews all live there. Admins run it all from their own panel.

Racing app home
HomeOpen races, weekly goals and your stats in one place.
Race HUD
Race HUDPosition, laps, splits, gaps and a live board.
Tournaments
Tournaments1v1 knockout brackets, or a points series over several tracks.
0Race modes
0Tracks ready on install
0Drivers per race by default
0Fuel scripts supported
0Key scripts supported
Drift mode

Slide longer.
Bank bigger.

In a drift race, standings, results and prizes are ranked by points, not by time.

Drift score building up mid slide
The chain grows over the car while you slide

Banner when you bank

Drift0+
Good1,000+
Great4,000+
Insane10,000+
Legendary25,000+
  • Counts from 12 to 85 degrees of angle, above 30 km/h
  • The multiplier grows every second you hold the slide, up to x5
  • Straighten up for 1.6 seconds and the chain is banked
  • The server caps how fast points can grow
Everything in the box

A whole racing scene.
For free.

10 race modes

Sprint, circuit, drag, time trial, street, elimination, teams, checkpoint challenge, tournament and drift.

Modes

Own race world

Racers and spectators go to their own routing bucket. No NPCs, no traffic, only the race.

Routing buckets

Racer names

Every player picks an alias the first time. Grids, results and rankings show it, never the character name.

Identity

Live lobby

Ready checks, chat and an invite list. Open races show on the map with a blip.

Lobby

Parimutuel bets

Bet on a driver before the start. The pool is split between the winning bets. Spectators can bet too.

Money

Fees and prize split

Entry fees fill the pot. 50, 30 and 15 percent to the podium by default, with an optional host commission.

Economy

Car rules

Own cars, one car for everyone, or a random car by class. Limit by class, category, whitelist and blacklist.

Classes D to X

Performance classes

Every car gets a class from its top speed and acceleration, worked out from the model.

Automatic

Track builder

Drive and drop checkpoints in game, with a radius per checkpoint and alternative routes.

In game

Approval queue

New public tracks from players wait for an admin before anyone else sees them.

Moderation

Ghosts

Race against a ghost of your best lap and of the track record.

Replays

Penalties

Seconds added for a false start and for a missed checkpoint. Both are settings.

Fair play

Warnings

Wrong way, out of the race area and out of the car. Too long out and the driver is disqualified.

HUD

Movable HUD

Every widget can be moved, resized or hidden. The layout is saved per player.

Per player

Two themes

Default and Tuner. Set the starting look in the config, each player can switch.

Settings

Tournaments

1v1 knockout brackets or point series over several tracks.

Brackets

Seasons, XP and ELO

Season points per place, money rewards for the top drivers, XP levels and an ELO rating.

Progression

Weekly challenges

Goals on the home page: wins, races, podiums, records or clean races, with money and XP.

Config

Crews

Tags, logos, leader and officers, invites and a crew ranking.

Social

1v1 challenges

Flash your high beams at another driver to challenge them. Pink slips for owned cars if you turn them on.

Street

Spectate

Watch a live race from inside its world.

Live

Scheduled races

Start a race now or set a start time. Admins plan events from the panel.

Events

Police alerts

Street races can alert the police when they start, through your dispatch.

Optional

Anti-cheat

Speed between checkpoints, teleports and impossible records are checked on the server and flagged for admins.

Server side

Reconnect

A driver who drops can come back to the lobby or the race within two minutes.

Default 120 s

Logs

Races, money, admin actions and anti-cheat flags go to four Discord webhooks.

Webhooks
Straight answers

What you get.
What you need.

Included

  • The script with its own NUI (no ox_lib menus), in English and Portuguese
  • 5 tracks ready on install: two circuits, two sprints and a drag strip
  • The player app, the race HUD and the admin panel
  • Open bridges and a clean config
  • Exports for your other scripts and Discord webhook logs

Good to know

  • Needs ox_lib and oxmysql. Tables are created automatically
  • The app opens with /racing and F6 by default, or with an item you choose
  • Bets, challenges, player tracks and pink slips can each be turned off
  • Admin settings saved in game win over the config file
  • Pink slips are off by default and only work with owned cars
Plugs into your server

Your stack.
Already supported.

Framework, inventory, keys and fuel are found on their own when the server starts. Nothing to wire by hand.

Framework

QboxQBCoreESX

Inventory

ox_inventoryqb-inventoryESX

Vehicle keys

qbx_vehiclekeysqb-vehiclekeyswasabi_carlockqs-vehiclekeysJaksam vehicles_keysMrNewbVehicleKeys

Fuel

ox_fuelLegacyFuelcdn-fuelps-fuellj-fuelokokGasStationlc_fuelqs-fuelstationsrcore_fuelhyon_gas_station

Dispatch

m-Mdtps-dispatchcd_dispatch

For developers

One line.
From any script.

-- no jobs while the player is racing
if exports['m-Racing']:IsRacing(source) then return end

-- open a server race from your event script
local raceId = exports['m-Racing']:CreateRace({ name = 'Friday Night Cup', track = 2, mode = 'circuit', laps = 3 })

-- start it, or end it early
exports['m-Racing']:StartRace(raceId)
exports['m-Racing']:StopRace(raceId, 'finish')

-- racing stats for your own tablet or phone app
local stats = exports['m-Racing']:GetPlayerStats(identifier)
FAQ

Before you install.

Is it really free?

Yes. The full script, with every mode, the app, the HUD and the admin panel.

Do players need to set up tracks first?

No. Five tracks are added on the first start. Players and admins can build more in game with the track builder.

Can players race their own cars?

Yes. A race can use the drivers' own cars, hand one car to everyone, or give out a random car by class. Addon cars work too.

Will normal players see the race?

Not by default. Each race runs in its own routing bucket, so the city stays untouched and the racers get an empty road. You can turn this off in the config.

Who can create races and tracks?

Players can, unless you turn it off. New public tracks wait for an admin by default. Admins change these rules in game under Settings.

Can the police get involved?

Street races can send an alert to the police when they start. It goes to m-Mdt, ps-dispatch or cd_dispatch, and you can point it at any other dispatch in the server config.

STARTYOUR ENGINES.

m-Racing is free. Qbox, QBCore and ESX.

Get m-Racing free