Hello,
I have a problem with my garage script (not sure) it’s the esx_eden_garage.
When I go custom my modded vehicle, it works but when I put my vehicle in the garage then I take him out, the color doesn’t apply for the latest custom.
Update : When I custom one by one (one color then take it to the garage then take it out) it’s save the color of the part that I changed. Does that mean that for any change I have to do it one by one ???
Yes For the color
Re re reupdate
I disconnected and reconnected, and my car lost his colour that he have before I disconnect.
UP : still got the problem and it’s really anoying
Got the same issue, did you find any fixes?
hey I have the solution go to the esx_lscustom script on server and main.lua and replace this:
RegisterServerEvent (‘esx_lscustom: refreshOwnedVehicle’)
AddEventHandler (‘esx_lscustom: refreshOwnedVehicle’, function (myCar)
MySQL.Async.execute (
‘UPDATE owned_vehicles SET vehicle = @vehicle WHERE vehicle LIKE"%’ … myCar [‘plate’] … ‘% "’,
{
[’@vehicle’] = json.encode (myCar)
}
)
end)
For this:
RegisterServerEvent (‘esx_lscustom: refreshOwnedVehicle’)
AddEventHandler (‘esx_lscustom: refreshOwnedVehicle’, function (vehicleProps)
local xPlayer = ESX.GetPlayerFromId (source)
MySQL.Async.fetchAll (‘SELECT vehicle FROM owned_vehicles WHERE plate = @plate’, {
[’@plate’] = vehicleProps.plate
}, function (result)
if result [1] then
local vehicle = json.decode (result [1] .vehicle)
if vehicleProps.model == vehicle.model then
MySQL.Async.execute (‘UPDATE owned_vehicles SET vehicle = @vehicle WHERE plate = @plate’, {
[’@plate’] = vehicleProps.plate,
[’@vehicle’] = json.encode (vehicleProps)
})
else
print ((‘esx_lscustom:% s attempted to upgrade vehicle with mismatching vehicle model!’): format (xPlayer.identifier))
end
end
end)
end)
ypu need esx save tunning
Did you solve this? I have the same issue!
Where can we get it?
Same problem i have tried it with all LS Customs but thee same issue continues and mainly In-game cars i cannot apply liveries and custom add on cars i cannot apply primary or secondary color
It happens because your version of Vrp might not have a database. I solved this using a vrpex base with mysql. The bennys script should connect to a db and save the customs. Not that easy to set up but the only way to solve it.
I use ESX and there are some cars that will Save their livery and some that wont idk i think its the issue of the cars or that car pack that i made
yo tengo un problema y es que cuando tuneo un coche no se guarda el humo de las ruedas ni los neones
alguna solucion?
Did you fix issue?
same issue some cars work somes not:( help
did you fixed it ?
i have it fixed if u want i had the same problem on my server and fixed it myself
how have you done it? i need it for another garage
New fix for some issues still in the scrip
i forgot some issues on garages