Tanker spawning instead of a Car

If a tanker spawns instead of the intended vehicle, this is usually an ESX issue related to the vehicle class. You can fix it either by editing the ESX file or adjusting the vehicle class in vehicles.meta.

TL;DR:

Change the vehicle class in vehicles.meta or fix the ESX file.

First Method

1.Open vehicles.meta of the vehicle

Find the vehicle model that is spawning as a tanker. Look for the <vehicleClass> line.

vehicle class example

2. Change the Class

Change the class to a different standard class, for example VC_SUV.

change vehicle class

3. Restart the server or resource

Restart the server or the resource the vehicle is inside for the changes to take effect.
That's it! Your vehicle should now spawn correctly.

server restart

Second Method

The second, more permanent method is fixing the ESX file causing the issue.

1. Open es_extended/client/functions.lua

Find the function ESX.GetVehicleTypeClient or ESX.GetVehicleType and set vehicle class [11] in types as "automobile".

ESX file example

2. Restart the server

Restart the server for the changes to take effect.
That's it! Your vehicle should now spawn correctly.

server restart

0 comentarios

Dejar un comentario

Ten en cuenta que los comentarios deben aprobarse antes de que se publiquen.