Import Vehicles
To start importing vehicles place yourself in an open zone because the script will start spawning vehicles in order to retrieve their specs.
Addon Vehicles
If you're importing addon vehicles, make sure FiveM knows how they're named. To do this, go to
client/editable/vehnames.luaand add each vehicle's spawn name and label to themyAddonVehiclestable.

If you skip this step, all your addon vehicles names will be saved as "NULL".
Import Panel

Model Name: Use this field to specify the exact vehicle model to import when adding new vehicles to your server.
Import All Vehicles: Imports all vehicles from your server. This process may take a few minutes, depending on your PC's performance.
If you want to import your vehicles from your Framework set Config.UseFrameworkVehicles = true in config/_config.lua / This option only works with QBCore and Qbox.


Missing Assets
This print can mean the following:
You have some addon vehicles folder where one of the vehicles.meta file have registered vehicles that does NOT exist in your server, meaning the .yft files are missing.
If importing a single vehicle, you entered one that does not exist in your server files.
Solution:
You can either ignore the warning and continue, or edit your
vehicles.metafile to find and remove the missing vehicle entry.
Custom Imports
This import functions can be found in client/editable/_framework.lua
The following functions allow you to import vehicle lists from any external script or database table:
getFrameworkVehicles()
This function retrieves all vehicles from your Framework. To import from a custom script or database, you must generate and return a table where each vehicle adheres to the following structure:
model:
hashThe vehicle model hashname:
stringVehicle model nameclass?:
stringVehicle classbrand?:
stringVehicle brand namecategory?:
stringVehicle category (suv, sports, super....)price?:
numberVehicle base price
getVehicleInfo()
This function retrieves data for a single vehicle from the Framework. For custom integrations, you must return a single table (not an array) matching the structure below:
model:
hashThe vehicle model hashname:
stringVehicle model nameclass?:
stringVehicle classbrand?:
stringVehicle brand namecategory?:
stringVehicle category (suv, sports, super....)price?:
numberVehicle base price
Last updated