Add car into ESX_CARDEALER?


#1

I got a RS6 into a server, works great to spawn it but i can`t find it in the cardealer shop, what to do? :slight_smile:


#2

you need to add the car to the database (vehicles)


#4

Works great withelse that i need to somehow add the vehicle to the ESX_Cardealer list, i have my phpmyadmin up and in the “vehicle” tab but i need the ID of the car am i right? if so, where can i find it?


#5

the id you use to spawn the car. You can find the id in the stream folder of the add on car. (nameofcar.yft)


#6

https://gyazo.com/ea9d6066964dfe6c1e4fbdee4e3e9ddc would this one be the right so 492 (?) sorry if im misstaking.


#7

audirs6tk should be the id


#8

https://gyazo.com/b38f47e41ff12518e9e47b603096a389 , yes i use audirs6tk to spawn in the car but you need ID and in carcols.meta it says id value 492 as the screenshot above. I guess i done it right now?!!?


#9

for the vehicle shop you only need to enter audirs6tk as the id.

492 is just the modkit id number. Its needed to modify the car.


#10

Damn, this was harder than i thought or it is just me who are being retarded, am i even in the right category at phpmyadmin? (currently under vehicles)


#11

You need to add your car to the vehicle table. There should already be some cars in there. You just add a new entry and enter the car id, name, car category and price. Thats it.


#12

I understand that. but the ID is unique for every vehicle am i right? you told me to set “audirs6tk” as id, but an id can only have numbers. Im probably just misstaking what you are sayin rn


#13

you’re probably trying to enter the id of the table row. You can leave that empty, phpmyadmin adds the right number by itself.


#14

ill keep you updated after the restart, thanks a lot for answering all my questions dude. Really really appericate it <3


#15

yeah, looks good to me.


#16

No worries.

FYI: you might not be able to modify this car if the modkit ID is already taken. Its hard to find free ids. If you want the standard modifications like wheels, engine, turbo etc, you need to change the modkit ID within the carvariation file to 0_default_modkit. If this car has visible modifications you want to use, you have to search for a free modkit id which can be a pain.


#17

It worked now, thanks a lot dude