MT Dealerships V2 | Dealership/Vehicle shop script


MT Dealerships V2
Advanced player owned dealership script for QBCore, QBox or ESX
Want to have multiple dealerships, owner or not owned on your server?
With MT Dealerships that’s possible!

Preview
Download

Features:

  • Possibility of creating multiple dealerships with different jobs and vehicles
  • Possibility of having owned or not owned dealerships
  • Test drive system using Routing Bucked (optional)
  • Stock system (optional)
  • Buy vehicles via catalogue or sell them at dashboard
  • List of sells
  • List of importations
  • Buy and test vehicles directly from showroom
  • Admin command to add or remove stock
  • Clean UI made in Typescript with React, Vite and Mantine
Code is accessible No
Subscription-based No
Lines (approximately) LUA ~870, React ~700
Requirements es_extended, qb-core or qbx_core, ox_target or qb-target, ox_lib
Support Yes
1 Like

I’ve used MTs original version for awhile. It functions properly and if you ever have questions MT is quick with responses and very helpful. V2 has a beautiful UI and your player base will love it. I have used a few of MTs scripts over the years and recommend them for sure.

1 Like

Thanks!!! :slight_smile: :heart:

1 Like

Hello,
i just bought your nice script but there is no streaming folder for the signs to access the catalogues, Do i need other recources to use Signs?

LG

I use mono’s Garage and Key script but i can’t store any vehicle in any garage. i got a key and i can drive and lock the vehicle but i can’t store it.

Hey!
No, there’s no signs on that, it’s up to you to add or use the ones on the MLO itself

About the keys, the script just adds the vehicle to the sql and spawns it, the rest not sure how that works on the mono’s garage, however that part of the code is open, you can edit as you like

Is there a way to add the vehicle types like car/boat/air to provide more options to sell other vehicles then type car

LG

and there is one more thing :slight_smile:
If you transport some vehicles to the shop and you use a vehicle key you got 2 keys per transport. i would love to have a function like deleteVehicle(plate, trailerPlate) { removeKey(plate, trailerPlate) } in functions.lua

as a cardealer i got this error till i restart the script

[   4254609] [b3095_GTAProce]             MainThrd/ ^1SCRIPT ERROR: @mt_dealerships/client/functions.lua:137: attempt to index a nil value (field 'job')^7
[   4254609] [b3095_GTAProce]             MainThrd/ ^3> getPlayerJob^7 (^5@mt_dealerships/client/functions.lua^7:137)
[   4254609] [b3095_GTAProce]             MainThrd/ ^3> shouldHide^7 (^5@ox_target/client/main.lua^7:122)
[   4254609] [b3095_GTAProce]             MainThrd/ ^3> onPressed^7 (^5@ox_target/client/main.lua^7:281)
[   4254609] [b3095_GTAProce]             MainThrd/ ^3> ref^7 (^5@ox_lib/imports/addKeybind/client.lua^7:52)

ESX latest
OX latest

The error would be because you did not add the job to your database I would assume. I have not used ESX in awhile but I do believe you need to add it. Or you could change the job name in mt-dealerships config. If you want to add a boat shop, or airplane hanger sales you can just add it to the config as well. Or copy and paste one of the current config files and name it whatever you want. Remember to change coords to where you want this shop, and job name if you want it locked to a job. Hope that helps you.

1 Like

That got fixed on the last update!

1 Like

Can i choose any cars to display in showroom?