/car not spawning the right Car

/car does not work on spawning this Ford car mod,oil tank is spawned when i use command /car , but when I used vMenu to spawn it worked.
Spawn Code :arrow_right: /car f450plat
Downloaded from 2021 Ford F-450 Platinum [Add-On | Tuning | Template | VehFuncs V | Sound] - GTA5-Mods.com

you need open vehicles.meta file and search car name

<modelName>HERE CAR NAME</modelName>

and then use /car car_name

Thank you for your reply, i knew model name to spawn is the basic thing but it won’t work.

If you are using ESX, they are using some sort of list somewhere to determine the vehicle “type”. If it is not found it will default to the tanker.

I don’t use ESX anymore so I don’t exactly know where this list is but you probably need to add your vehicle to it.

would you like to share with us the code you use to spawn the vehicle?

/car f450plat
Downloaded from 2021 Ford F-450 Platinum [Add-On | Tuning | Template | VehFuncs V | Sound] - GTA5-Mods.com

Was there any solution to this issue because i have been searching for hours i am using standalone with no framework

You are not asking the right person :wink:

I do not use ESX and haven’t been for ages. ESX has a list somewhere where you need to add stuff. That’s the only tip I can give, sorry.

go to[core]\es_extended\client\functions.lua. Scroll all the way to the bottom and change [11] = to “automobile”, it’s set up as trailers by default

Thank you for your reply, what about wrongly spawn car ‘adder’ instead of a add on car mod ? But when i bought it from esx_vehicleshop it spawn correctly, when i used command /car it spawn an ‘addder’.

that’s a fallback car that the game will sometimes go for when there’s an issue with the meta files or possibly game build. Does it do that with any addon car or a specific one?

Just a specific car will spawn as an adder. Some of the add on car will spawn without whole missing a part of chassis.

Add it in this list… At least I think that was it.
https://github.com/esx-framework/esx_core/blob/main/[core]/es_extended/client/functions.lua#L1562-L1596

Like this ? [carspawncode] = “automobile”,

Remember to keep those symbols and put the spawn name in between: ``

ok sure, will try it later .Thanks in advance :heart:

1 Like

OMG these are all way off… lol theyre on the right track by in the right file in the vehicles meta you will see the vehicle class and you just need to set it to OFFROAD or really any of the other class so it should look like this VC_{putclasshere} where i put {putclasshere} replace with say OFFROAD so it would look like this VC_OFFROAD