Vehicles
If the exports are active and the sync is also active, the sync is preferred and the exports are deactivated.
Configure in config.sync.lua
Make sure that in Config.Sync the entry active is set to true and in Types the Users & Vehicles are set to true. (if Users is false there is no correct connection to the owner)
(Optional VehiclesWhere)
You can insert a custom where statement for the vehicles sync
Only the column in the Vehicles-Table can be filtered
ESX “owned_vehicles”
QB “player_vehicles”
Example filters:
This filter will remove all vehicles where plate is starting with LSPD or LSMD
ESX
owned_vehicles.plate not like ‘LSPD%’ AND owned_vehicles.plate not like ‘LSMD%’
QB
player_vehicles.plate not like ‘LSPD%’ AND player_vehicles.plate not like ‘LSMD%’
Add data to the sync
Open the sync_functions.lua with any ide (notepad++, visual studio code)
/server/sync/vehicles.lua
Search in the file the FormatData function for your Framework
ESX : myMDT_core_sync.vehicles.FormatData_ESX
QB: myMDT_core_sync.vehicles.FormatData_QB

The Important part is now where the curly brackets from the return

if your vehicles-table stores the model of the vehicle than you simply need to add this like following:

on the left hand is the column name/key from myMDT_core, on the right side is the column from your vehicles table.
Never remove this keys : id, fromsystem, plate
if you want to remove the owner from sync please set follwing to false if available:
Available Keys
owner
veh_type
mot
veh_model
others
color
Last updated