Where do I put the code from you’re pastebin-link? I want that it stores engine health when I park it in
can save vehicle damage ?
is it possible to use the real impound instead of the yellow markers by the garages?
In your client, find lines
exports.ft_libs:AddArea("esx_eden_garage_area_"..k.."_garage", {
and change marker type :
exports.ft_libs:AddArea("esx_eden_garage_area_"..k.."_garage", {
marker = {
rotate = true,
weight = v.Marker.w,
height = v.Marker.h,
red = v.Marker.r,
green = v.Marker.g,
blue = v.Marker.b,
type = 27,
},
Do this for each marker you want to modify.
It does.
Go to es_extended\client\functions.lua and add those lines :
bodyHealth = GetVehicleBodyHealth(vehicle),
engineHealth = GetVehicleEngineHealth(vehicle),
fuelLevel = GetVehicleFuelLevel(vehicle)
}
end
after
modWindows = GetVehicleMod(vehicle, 46),
modLivery = GetVehicleLivery(vehicle, 48),
and add :
if props.bodyHealth then
SetVehicleBodyHealth(vehicle, props.bodyHealth + 0.0)
end
if props.engineHealth then
SetVehicleEngineHealth(vehicle, props.engineHealth + 0.0)
end
if props.fuelLevel then
SetVehicleFuelLevel(vehicle, props.fuelLevel + 0.0)
end
after :
ESX.Game.SetVehicleProperties = function(vehicle, props)
SetVehicleModKit(vehicle, 0)
if props.plate then
SetVehicleNumberPlateText(vehicle, props.plate)
end
if props.plateIndex then
SetVehicleNumberPlateTextIndex(vehicle, props.plateIndex)
end
Thanks brother helped me a lot
you are a life saver ! :’)
any ideas how to code that all vehicles spawn on startup? I already coded the save of x,y,z,a/heading
but idk how to do the rest. I tried and i failed, multiple times :c
I have the new version and everything works perfectly, but does anyone know i can put pack in allowing to spawn multiple cars? right now even if the car is destroyed or blown up it will still not let me take it from the impound says “go look for it”
you cannot at startup, when no client is connected
You could check, in car is exploded or has health 0, delet vehicule ans spawn one
do you have any idea where i would find that line?
You have to add it yourself, between line 125 and 126
and 124 - 126
Hello,
Someone can tell me why i have this error ?
I dont found any solution about that.
i think you have an error in config file
I can see the spot to put a vehicle in the police pound and when i do the vehicle deleted but doesnt show up in the pound. I checked the SQL and its not changing the state of pound. Any idea how to fix this?
I have been trying to add planes to the garage but I get can not store vehicle. I don’t get any errors either.
it is changing, but you need to add in characters, identifier, the name of the job example: police, firstname: society, lastname: police
how do i do that for the pound?
do what ?