From 5a3cf11376d3de1e26a6afef31b2b91957579552 Mon Sep 17 00:00:00 2001 From: L'kid Date: Mon, 18 May 2026 10:08:52 +0200 Subject: [PATCH] Update localized mod type to display proper name --- vMenu/menus/VehicleOptions.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vMenu/menus/VehicleOptions.cs b/vMenu/menus/VehicleOptions.cs index 17da329b..410e897d 100644 --- a/vMenu/menus/VehicleOptions.cs +++ b/vMenu/menus/VehicleOptions.cs @@ -2086,7 +2086,10 @@ public void UpdateMods(int selectedIndex = 0) veh = GetVehicle(); // Get the proper localized mod type (suspension, armor, etc) name. - var typeName = mod.LocalizedModTypeName; + var rawLabel = GetModSlotName(veh.Handle, (int)mod.ModType); + var resolvedLabel = !string.IsNullOrEmpty(rawLabel) ? GetLabelText(rawLabel) : null; + if (resolvedLabel == "NULL") { resolvedLabel = null; } + var typeName = resolvedLabel ?? mod.LocalizedModTypeName ?? rawLabel; // Create a list to all available upgrades for this modtype. var modlist = new List();