[How to] Add Addon Cars into ESX_VehicleShop (MYSQL)


#1

Hello, i seen many people wondering how to put in vehicles for sale in esx_vehicleshop. Today im gonna show you how to do it properly.

Requirements: MYSQL
ESX_VEHICLESHOP
A ESX Fivem Server
A Car

Start off by adding a car (i wont show this step since i believe there is a tuto for it allready) into the game, you need to find the spawn name of the car usually this can be find in the files of the model.

Open up HeidiSQL and login to Database, press on the vehicle “tab”

Right click on a vehicle and press duplicate row
Now it will look something like this depending on what vehicle row you decided to copy.

For the ID it will be something random that your database doesnt allready use, for me the highest number is 360 so i do 361. Name will be what you want it to be named in the esx_cardealer, it doesnt really matter at all. ID is important, this will be the spawn name of the vehicle. Lets say i installed a Audi RS6 and the spawn name will be for example audirs6 then that is the Model. Price is of your choice and category all depends what vehicle but doesnt matter.

When you are done it should look something like this:

Restart Server & Success! :stuck_out_tongue_closed_eyes:


#2

I select a car to buy. but when I’m on the screen to put YES or NO, I press ENTER and do not know anything. It’s as if the ENTER key does not work. No message appears. Thanks in advance.


#3

What if there are no cars in the shop to begin with?


#4

Just create a new line, there should be a car to begin with if you imported the SQL.


#5

Thanks.I found an error in the sql and fixed so now it works.


#6

Have a problem. Then i entered to the purple marker and press E, where is no menu of choosing a car?
Somebody know how to fix it?


#7

II am having the same problem, can anyone help


#8

same problem i press E on the purple spot then nothing i stay blocked in the middle of the shop and cant do nothing… ???


#9

Same here. 1 car worked all the others not. Standing in the middle and all is empty and no cars


#10

When u put new vehicle in vehicles database, u needn’t to write id, base will choose this automatically.


#11

did you fix this? i have the same problem


#12

Yes my addon cars where the poblem. The gamename and the normal name should be the same in the vehicles.meta. then it works great with the gamename.


#13

By “normal name”, do you mean modelName?


#14

example on my side:

      <modelName>rs318</modelName>
      <txdName>rs318</txdName>
      <handlingId>RS318</handlingId>
      <gameName>rs318</gameName>

#15

I did that but in game the menu doesnt show up anymore as it did before its just blank i just see as if there would be a menu and car but it aint


#16

Same for me. Loaded SQL and all the dependencies. But there is no menu when entering the purple circle in the store. I try to push ‘E’ but nothing happens. The shop is also completely empty… No cars.
I have cash for buying a vehicle.
Why is this ? Seems like several of us is experiencing the same issue ?


#17

Has anyone found a fix for this error? i run a server of only custom cars and im the only one that can sell them by manually going into the DB and adding it to the cardealer list then pull it out and sell it