[SCRIPT] Save & Load Vehicles on start up with vehicle position + vehicle dirt
-
Hello guys,
Like the title says, i really miss a script since the early PC days where i can save my car like on role play servers on MTA with the current vehicle position and the state of the vehicle.
All the scripts i found only replace the character vehicle or only save the state of the vehicle, but no one of those scripts save the position and dirt.What the mod should do:
-Save the current vehicle on the current position with the current state of vehicle dirt and maybe damage (if its possible)
-Save the vehicle with all tuning and colors and so on
-Set a blip to the saved vehicles
-Load those vehicles on start up the game without needing to load them manually.
-INI file with custom configurations.
-No menu please, no NativeUI, only this simple thing.Extra:
Maybe the car we save should get locked for NPC's if its possibleWhy?
Because i really like realism mods and the times of MTA or SAMP where i come to a server and my car is still there. It gives me a nice feeling and it let us park alot of our cars around the city.If someone could do this, i really would appericate it
thanks
-
Can you do that with a trainer?
-
@v8charger222 No! Which one?
-
@MrGTAmodsgerman menyoo trainer, I thought it had a option where you could save your car and you could park it anywhere and it won't disappear so matter how far away your from it
-
@v8charger222 No, only vehicle save option with settings, but nothing like this request! It doesn't spawn anything on start up, there isn't a option for it. Its only possible to park the current car with a blip on the map, but without any saving
-
@MrGTAmodsgerman Easy, will do that.
-
@MrGTAmodsgerman UPDATE: Not so easy lol, but its coming together nicely. You can probably expect a release if everything goes ok.
-
@AHK1221 THANKS, there is a mod called Save & Load Vehicles and there is a source code of it. Watch it if you need help with it.
-
@MrGTAmodsgerman Its an ASI plugin, but sure why not lol.
I use the .NET hook and its nearly done, I just need to figure out the "Automatic Saving" part that saves your vehicle without you needing to press a key.
-
@AHK1221 Nice, but remember, it should let us decide by pressing a key which vehicle we want to save
-
@MrGTAmodsgerman Yeah lol I don't want to crash the game by saving literally every vehicle the player sits in.
-
@AHK1221 Tag some scripters, they can help you if you need
-
@MrGTAmodsgerman @AHK1221 Just save a config using the System.IO reference (if you are using C#). Use the write line function by turning the vehicle's rotation, position, and mods into strings and putting them in an ini file.
-
@NotCrunchyTaco I use XML since its a lot easier to handle. I already have most of it down, just need some final tweaks.
-
This post is deleted!
-
Good news! I figured out the the auto saving thing. Now it works, just need to add more properties(wheel color, etc etc, stuff I didn't add since I was just testing) and it'll be done!
-
@AHK1221 How long will it take until It's finished? And can you maybe post an download link as soon as you are done?
-
@Kwebbl Just finished it. Works awesomely. Now I just need to upload it and it'll be done.
-
Uploaded, waiting admin approval.
-
@AHK1221 @Kwebbl @MrGTAmodsgerman It's been approved https://www.gta5-mods.com/scripts/save-and-load-vehicles-autmatically
-
@AHK1221 Thank you man
Cant wait to test it now
-
@Jitnaught And now it's been featured.
-
@Unknown-Modder Life does not make sense anymore.