Qb-Garages ve2 Nopixel Inspired 4.0

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)

1 Like

Don’t use this!!

plate image and import car image not working

This works for me man thank you!

1 Like

HOW FIX

Thanks it works for me