[SCRIPT] Vehicles stay dirty [DONE]
Would be super dope if some expert can make a script that keeps the pre-set dirt level for vehicles after being repaired please.
For example I set the cars dirt level to 7. Crash. Get repaired. Dirt level remains at 7 instead of being reset to 0 and looking totally clean.
Thanks in advance.
Function.Call(Hash.SET_VEHICLE_DIRT_LEVEL, LastVehicle, 0.0f);
Dawg you are a scholar and a gentleman! Thanks ill try that.
@JohnFromGWN Okay I have no idea what I am doing lol.
In the car mod vehicles.meta I deleted the existing 2 dirt settings lines and replaced them with your great advices but of course no luck. I did it wrong.
Where do I insert that line of code please?
@gtavjamal sorry, your topic said script, so i suggested a line of code, u can't use that in xml
@JohnFromGWN Ahhh gotcha. Thanks anyway dawg. Every lil bit helps one way or anotha.
@gtavjamal Cars have a dirt map, likely there is a way to modify that. So maybe you can change those textures unless they are embedded and not editable. Hopefully a modder can comment.
@JohnFromGWN Great idea appreciate it. Lol way above my pay grade but I'll look into it fo sure. Thanks again.
copy the text, create a file named
VehiclesStayDirty.3.csin your scripts folder, and paste the text into that.
@Jitnaught You are the one.
I was literally like Morpheus watching your script in action
My mind is officially blown! Absolutely incredible!!!
Works so perfect! Even with the Menyoo Auto repair function.
This is added to my absolutely vital mods list. Will make life a whole lot easier!
Dawg i cant thank you enough! Thank you thank you thank you!!!
PS. Also thanks again to JohnFromGWN. Any bit of help and good intentions add up thanks again.