I cannot find any code regarding this in your garage script. And as far as I am aware, ox_lib also doesn’t have that feature.
Just curious because I am one of the very few who got this working in the first place
that’s right, what I meant by that was visual damage like doors, windows and other things but I made a mistake in the wording. I will try to correct it.
the best, no match! Suggestion: Additional to make it sweeter. given this, SetVehicleOnGroundProperly(vehicle) and remove the JOB vehicle, so it doesn’t get mixed up
The player is given keys when pulling a car out of the garage. However, when removing a car from the impound, keys are not given. How do I fix this?
Here is the client code for spawnVehicle:
function spawnVehicle(vehicleData, plate, coords)
if not lib.getClosestVehicle(vector3(coords), 5.0, false) then
ESX.Game.SpawnVehicle(vehicleData.model, vector3(coords), coords.w, function(veh)
SetPedIntoVehicle(PlayerPedId(), veh, -1)
lib.setVehicleProperties(veh, vehicleData)
lib.notify({
description = locale('vehicle_out'),
type = 'success'
})
TriggerServerEvent('vrs_garage:setVehicleOut', plate, false)
if Config.FuelSystem == 'LegacyFuel' then
if vehicleData.fuelLevel then
exports["LegacyFuel"]:SetFuel(veh, vehicleData.fuelLevel)
end
elseif Config.FuelSystem == 'ox_fuel' then
Entity(veh).state.fuel = vehicleData.fuelLevel
elseif Config.FuelSystem == 'custom' then
-- add your custom system export here
end
if Config.KeySystem == 'custom' then
-- add your custom system export here
-- DecorSetInt(veh, "owner", GetPlayerServerId(PlayerId()))
exports['hsn-hotwire']:AddKeys(GetVehicleNumberPlateText(vehicle))
end
end)
else
lib.notify({
description = locale('vehicles_in_zone'),
type = 'error'
})
end
end
It is a purchased vehicle and there are no errors on the console and the database is correct and the car appears mine! I use esx_legaxy 1.10.1 if someone could give me a hand I would appreciate it