File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1496,7 +1496,7 @@ public struct VehicleInfo
1496
1496
/// <summary>
1497
1497
/// Saves the vehicle the player is currently in to the client's kvp storage.
1498
1498
/// </summary>
1499
- public static async void SaveVehicle ( string updateExistingSavedVehicleName = null )
1499
+ public static async void SaveVehicle ( string updateExistingSavedVehicleName = null , string existingCatergory = null )
1500
1500
{
1501
1501
// Only continue if the player is in a vehicle.
1502
1502
if ( Game . PlayerPed . IsInVehicle ( ) )
@@ -1584,7 +1584,7 @@ public static async void SaveVehicle(string updateExistingSavedVehicleName = nul
1584
1584
bulletProofTires = ! veh . CanTiresBurst ,
1585
1585
headlightColor = VehicleOptions . GetHeadlightsColorForVehicle ( veh ) ,
1586
1586
enveffScale = GetVehicleEnveffScale ( veh . Handle ) ,
1587
- Category = "Uncategorized"
1587
+ Category = string . IsNullOrEmpty ( existingCatergory ) ? "Uncategorized" : existingCatergory
1588
1588
} ;
1589
1589
1590
1590
#endregion
Original file line number Diff line number Diff line change @@ -499,7 +499,7 @@ string ChangeCallback(MenuDynamicListItem item, bool left)
499
499
{
500
500
replaceButtonPressedCount = 0 ;
501
501
item . Label = "" ;
502
- SaveVehicle ( currentlySelectedVehicle . Key . Substring ( 4 ) ) ;
502
+ SaveVehicle ( currentlySelectedVehicle . Key . Substring ( 4 ) , currentlySelectedVehicle . Value . Category ) ;
503
503
selectedVehicleMenu . GoBack ( ) ;
504
504
Notify . Success ( "Your saved vehicle has been replaced with your current vehicle." ) ;
505
505
}
You can’t perform that action at this time.
0 commit comments