Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

FiveM Vehicle Scripts

FiveM Racing

GFX Racing

GFX Scripts
Frameworks:
  • ESX
  • QBCore

Checked by the RPScripts Lab

  • Static check: 1 resource read
What was checked
Check compatibility with your server

Details

Frameworks
ESX, QBCore
Version
1.0.0
Dependencies
new-qbold-qboxmysql
File size
46.6 MB
Creator
GFX Scripts
Updated
Licence and support terms
  • Licence: for your own server or project. No resale or sharing.
  • Updates: when a newer file is available, it appears in your account downloads.
  • Support: download access and product-specific setup questions.
Licence and support terms

Description

GFX Racing (gfx-racing) is a racing script for QBCore and ESX servers. Players draw routes on a live map, create races with a cash reward, join active races and follow their position on a race HUD; wins, losses and distance feed a leaderboard.

Features

  • Create routes by placing points on the live map (5 to 200 points by default) and keep saved routes in the menu
  • Create a race from a saved route with a name, start time, maximum players and a reward; the reward is taken from the creator's bank account and paid to the winner
  • New races are announced to all players and shown on the live map; join or leave them from the menu
  • Countdown notifications from 5 minutes before the start with a waypoint to the start; racers more than 100 m away when it starts are removed
  • Race HUD with live positions, optional player names (Config.ShowPlayerNamesInRace) and switchable vehicle collision (Config.VehicleCollision)
  • Player profile with wins and losses, total distance, race history, last race and favorite car, plus a leaderboard sorted by wins
  • Profile photos from Steam or Discord (Config.ImageType; Discord needs a bot token in server/server-config.lua)
  • Opens with the OpenRace command, the G key or a usable item; the default item is burger, so change it or set it to false in config.lua

Requirements

  • QBCore (current or older builds) or ESX, selected with Config.Framework (new-qb, old-qb or esx)
  • oxmysql (the server code uses its MySQL API directly, whatever Config.Database is set to)

Installation

  • Import sql.sql into your database (creates the gfx_racing and races tables).
  • Copy the gfx-racing folder into your resources directory and adjust config.lua (framework, open key, item, texts).
  • Add ensure gfx-racing to your server.cfg after your framework and oxmysql.

Notes

  • Race positions, the finish and the payout amount come from data the client sends, and any client can remove an active race without the creator's reward being refunded; review server/main.lua and server/player.lua before using it on a live server.

Server setup

Step-by-step guide: how to install a FiveM script

Checked: the only resource of this download.

GFX Racing

In your downloads
  • JG Dealerships
    • ESX
    • QBCore, Qbox
    Not for your framework

    JG Dealerships

    JG Scripts

    $30.00$21.00
  • Car Radio
    • ESX
    • QBCore, vRP
    Not for your framework

    Car Music System V3 [Standalone]

    $14.99$10.49
  • Simple ESX HUD FiveM resource preview
    • ESX
    • Standalone, QBCore, Qbox

    Airbags Script

    Big Daddy

    $9.00$6.30
  • mCarControl
    • ESX
    • QBCore
    Not for your framework

    CodeM mCarControl

    CodeM

    $5.00$3.50
  • Quasar Vehiclekeys 2.0 FiveM resource preview 2
    • ESX
    • Standalone, QBCore, Qbox

    Quasar Vehiclekeys

    Quasar Scripts

    $10.00$7.00
  • CodeM mVehicleshop v2 FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    CodeM mVehicleshop v2

    CodeM

    $15.00$10.50
  • Smart Motorways
    • ESX
    • QBCore, Qbox, vRP
    Not for your framework

    London Studios Smart Motorways

    London Studios

    $30.00$21.00
  • Cardealer by Zerio
    • ESX
    • QBCore, Qbox
    Not for your framework

    Zerio Cardealer

    $19.00$13.30