Hi, when trying to spawn certain vehicles (towtruck or caddy or utilities vehicles) i get a tanker instead. Does anyone knows a fix?
Have same issue. Are you using any framework?
ESX 1.9.4 Legacy
It seems like problem is in vehicleType, because it returns same type “trailer” for trailers as well as for utility vehicles. So if you pass vehicleType “trailer” to CreateVehicleServerSetter() it will give you a trailer no matter what utility vehicle you try to spawn, but with type “automobile” everything works normal and utility cars spawn.
See no other fix, then to implement logic which will return “automobile” type for utility cars, instead of “trailer”
Found a solution with this hint:
on es_extended/client/functions.lua on ESX.GetVehicleType you must set vehicle class [11] in types as “automobile” or just comment it
Does it work normally for trailers after that?
Nope sadly
Worked for me !
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.