Skip to content

Commit 9e4055b

Browse files
author
Michael S
committed
Fixes license plate style order
Corrects the order of license plate styles in the vMenu options. This ensures the correct style is applied when selected by the user. The order was not matching the index and displayed the wrong styles.
1 parent 5374f61 commit 9e4055b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

vMenu/menus/VehicleOptions.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ private void CreateMenu()
181181
"to apply the selected level.");
182182
var licensePlates = new List<string> {
183183
GetLabelText("CMOD_PLA_0"), // Plate Index 0 // BlueOnWhite1
184-
GetLabelText("CMOD_PLA_4"), // Plate Index 1 // YellowOnBlack
185-
GetLabelText("CMOD_PLA_3"), // Plate Index 2 // YellowOnBlue
186-
GetLabelText("CMOD_PLA_1"), // Plate Index 3 // BlueOnWhite2
187-
GetLabelText("CMOD_PLA_2"), // Plate Index 4 // BlueOnWhite3
184+
GetLabelText("CMOD_PLA_1"), // Plate Index 1 // BlueOnWhite2
185+
GetLabelText("CMOD_PLA_2"), // Plate Index 2 // BlueOnWhite3
186+
GetLabelText("CMOD_PLA_3"), // Plate Index 3 // YellowOnBlue
187+
GetLabelText("CMOD_PLA_4"), // Plate Index 4 // YellowOnBlack
188188
"North Yankton", // Plate Index 5 // NorthYankton
189189
GetLabelText("CMOD_PLA_6"), // Plate Index 6 // ECola
190190
GetLabelText("CMOD_PLA_7"), // Plate Index 7 // LasVenturas
@@ -749,16 +749,16 @@ private void CreateMenu()
749749
veh.Mods.LicensePlateStyle = LicensePlateStyle.BlueOnWhite1;
750750
break;
751751
case 1:
752-
veh.Mods.LicensePlateStyle = LicensePlateStyle.YellowOnBlack;
752+
veh.Mods.LicensePlateStyle = LicensePlateStyle.BlueOnWhite2;
753753
break;
754754
case 2:
755-
veh.Mods.LicensePlateStyle = LicensePlateStyle.YellowOnBlue;
755+
veh.Mods.LicensePlateStyle = LicensePlateStyle.BlueOnWhite3;
756756
break;
757757
case 3:
758-
veh.Mods.LicensePlateStyle = LicensePlateStyle.BlueOnWhite2;
758+
veh.Mods.LicensePlateStyle = LicensePlateStyle.YellowOnBlue;
759759
break;
760760
case 4:
761-
veh.Mods.LicensePlateStyle = LicensePlateStyle.BlueOnWhite3;
761+
veh.Mods.LicensePlateStyle = LicensePlateStyle.YellowOnBlack;
762762
break;
763763
case 5:
764764
veh.Mods.LicensePlateStyle = LicensePlateStyle.NorthYankton;
@@ -1851,16 +1851,16 @@ async void HandleItemSelect(Menu menu, MenuItem menuItem, int itemIndex)
18511851
case LicensePlateStyle.BlueOnWhite1:
18521852
listItem.ListIndex = 0;
18531853
break;
1854-
case LicensePlateStyle.YellowOnBlack:
1854+
case LicensePlateStyle.BlueOnWhite2:
18551855
listItem.ListIndex = 1;
18561856
break;
1857-
case LicensePlateStyle.YellowOnBlue:
1857+
case LicensePlateStyle.BlueOnWhite3:
18581858
listItem.ListIndex = 2;
18591859
break;
1860-
case LicensePlateStyle.BlueOnWhite2:
1860+
case LicensePlateStyle.YellowOnBlue:
18611861
listItem.ListIndex = 3;
18621862
break;
1863-
case LicensePlateStyle.BlueOnWhite3:
1863+
case LicensePlateStyle.YellowOnBlack:
18641864
listItem.ListIndex = 4;
18651865
break;
18661866
case LicensePlateStyle.NorthYankton:

0 commit comments

Comments
 (0)