[C#]Save Tuning
-
i'm doing a Save car script.. but not all works fine.. but like color and model works.. what can i do? and how i can get the motor type traction suspenction extra(spoiler etc..)? in natives i don't fin anythings
SAVE CAR
//NEON
string neon = CurrAuto.NeonLightsColor.ToArgb().toString();
ini.WriteValue("Car" + select, "Neon", neon);
//WINDOWS TINT
if (CurrAuto.WindowTint == VehicleWindowTint.Stock)
{
ColVet = "Stock";
}
else if (CurrAuto.WindowTint == VehicleWindowTint.PureBlack)
{
ColVet = "PureBlack";
}etc....
ini.WriteValue("Car" + select, "WinTint", ColVet);
//PLATE TYPE
string PlateType = CurrAuto.NumberPlateType.ToString();
ini.WriteValue("Car" + select, "PlateType", PlateType);//SPAWN CAR
//WINDOWS COLOR
WinTint[select] = SaveC.GetValue<string>("Car" + select, "WinTint", "Empty");
if (String.Compare(WinTint[select], "Stock") == 0)
{
spawnAuto.WindowTint = VehicleWindowTint.Stock;
}
else if (String.Compare(WinTint[select], "PureBlack") == 0)
{
spawnAuto.WindowTint = VehicleWindowTint.PureBlack;
}etc...
//PLATE
PlateType[select]= SaveC.GetValue<string>("Car" + select, "PlateType", "Empty");
//NEON
Neon[select]= SaveC.GetValue<string>("Car" + select, "Neon", "Empty");
-
@Santo99 My forceRespawnVeh() function (Found here) makes a clone of a vehicle with (most) tuning parts intact, it may be of help.
-
@stillhere thanks!! I ll try