Hello, Im new here. Not sure how this works but I’ve been looking for a script or something that could do this.
Generally speaking Im looking for an impound lot, from where you could recover totaled vehicles incase no mechanics are online. I believe I’ve seen this kind of plugin on a server but I had no luck finding such a thing.
Thanks for your help guys, I hope to see this one day
[EDIT] Just popped into my head, would this be possible to create by making a garage that has access to personal vehicles that arent stored in normal garages?
Shearing it? i have been working on my own, but so tierd of it not working. just getting to the problem that the car alredy is out, and teknikly it is but blown up or deleted.
I don’t think it would be very hard to make I mean, You could simply have the “impound” simply just transport the vehicle to a new location for example the impound lot, then the person has to go there to get their car and have it so if the vehicle has been impounded and thats set to true then simply add a price to get inside the vehicle (Paying the impound fee) and then change impound to false and bam I know its alot more difficualt then what I am explaining it to be but would be a great idea, but then you’d always need to have a check on the vehicle
I know Koil has something simular to your idea with the whole garage thing and having a 5000 fee on getting that car out of the impound lot and or if its been destroyed, but there is always a work around for example for Koil a work around is just switching your character on his server which is a huge issue that I believe he has fixed but I know he has managed to get that to work.
I’m about to start writing one. I’d just start with a function wich allows players with the right permissions, and admins to impound a vehicle, either by dropping it off at an impound, OR just have it despawn and save in a dedicated table in the database. This would act as sort of secondary garage, but the main difference is, to retrieve the vehicle, money must be paid. It’s actually very simple but it will take me a bit of time as it’s one of my first C# projects. I’m familiar with C++ so it shouldn’t be too hard. If anyone has any tips tho. Would be greatly appreciated.
EDIT:
I actually nearly finished a whole new complete vehicleshop/garages/impound system allready. The vehicleshop is mostly focussed on addon vehicles, and categorizes by brands, seperated over multiple different shop locations. Same for the garages and impounds wich can be multiplied allover the map to devs needs. I will soon upload and share these, but i’m still expanding and improving on them. Many issues i found in other garage or impound scripts forced me to start writing my own.
standby for more updates
This took like 20 minutes to make for ESX. Make a server event that does two queries, one that grabs all of the owned cars for the player and then one that grabs all of the vehicles currently parked in the garage. Compare the plates of the owned vehicles with the plates of vehicles in the garage to make a list of “destroyed” vehicles. I also used the entity iterator to check the map for the vehicle before spawning to prevent duping.
I actually went a whole other way with this, and created a completely new vehicle framework, including shops, garages, impound, police impound, proper towing, tier based vehicles for various jobs and vehicle insurance system. I will keep adding features as i see fit. I think i’ll also include a new customs shop system with many fun little features that’s why this is taking me some time.
I solved this even easier, by storing all unparked cars (with a boolean) inside a table, wich you can feed through ESX.TriggerServerCallback(’…’) and just return that very table, then you can do whatever with those, park them, impound them, delete them from the db…
However i do have a question for you guys, inside our vehicleproperties we got a health value. It does save, allthough it does not reflect on the car, wich makes for a “repair exploit” when storing and releasing the car.
Even if that health variable goes down to 0, the car is not considered dead.
Now… I’m looking to use that value or just make another variable inside the database to store both Engine and Body damage.
The way i’m used to working in arma tho, is to store a vehicle inside a local var when spawned, so you can still modify or add scripts to it.
Is this possible with lua? Because i tried to alter the health on spawn that way, and didn’t get it to work so far