Skip to content

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

RPScripts

FiveM Vehicle Scripts

Story Vehicle Dealership FiveM resource preview

Story Vehicle Dealership

Frameworks:
  • ESX

Checked by the RPScripts Lab

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

Details

Frameworks
ESX
Version
2.0.0
Dependencies
oxmysqlox_inventoryqtarget
File size
361.3 kB
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

A vehicle dealership script for ESX servers. Players open the dealership through qtarget on a seller ped, browse the catalog in an NUI, test drive a car and buy it with cash.

Features

  • Dealership NUI opened through qtarget on the seller ped or with the /salon command, with the vehicle list grouped by class and showing price and estimated top speed
  • Seller ped and map blip, with coordinates, label, sprite, color and scale set in Config.PedSeller and Config.Blip
  • Test drive of Config.TestTime seconds (60 by default) at its own spawn point, with a countdown; /closetest ends it early, then the vehicle is removed and the player returns to the previous position
  • Purchase takes the price from the money item in ox_inventory, spawns the car at Config.VehSpawnPoint with a generated plate and saves it to the ESX owned_vehicles table
  • Everything is set in shared/config.lua: vehicle list (price, label, spawn name, class, image), spawn points, test drive time, seller ped, blip and notification texts
  • Plain Lua source, editable

Requirements

  • ESX (es_extended)
  • oxmysql
  • ox_inventory
  • qtarget
  • Players need internet access: the NUI loads its libraries from public CDNs and the example vehicle images from imgur

Installation

  1. Copy the folder story_vehicledealership into your resources directory. No SQL import is needed, it uses the existing owned_vehicles table.
  2. Make sure es_extended, oxmysql, ox_inventory and qtarget start before it, then add ensure story_vehicledealership to your server.cfg.
  3. Edit shared/config.lua. The example list uses the spawn names golf75r and blista, replace them with vehicles that exist on your server.

Server setup

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

Checked: the only resource of this download.

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
  • Contract ESX
    • ESX
    Not for your framework

    okokContract

    okok Scripts

    $13.99$9.79
  • 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