Arregle lo de las modificaciones
busca en client/main.lua (Ctrl + F) y busca esto “local function DepositVehicle(veh, data)” y busca dentro de la funcion el triggerServerEvent qb-mechanicjob:server:SaveVehicleProps borra esa linea y cambiala por esta
local properties = QBCore.Functions.GetVehicleProperties(veh)
TriggerServerEvent(‘qb-garages:server:SaveVehicleProps’, properties)
por ultimo solo agrega esto a el final de el server/main.lua
RegisterNetEvent(‘qb-garages:server:SaveVehicleProps’, function(vehicleProps)
if IsVehicleOwned(vehicleProps.plate) then
MySQL.update(‘UPDATE player_vehicles SET mods = ? WHERE plate = ?’, { json.encode(vehicleProps), vehicleProps.plate })
end
end)