11using System ;
22using System . Collections . Generic ;
33using System . Linq ;
4- using System . Threading . Tasks ;
54
65using CitizenFX . Core ;
76
8- using CitizenFX . Core . Native ;
97using MenuAPI ;
108
119using vMenuClient . data ;
@@ -1183,7 +1181,7 @@ void HandleListIndexChanges(Menu sender, MenuListItem listItem, int oldIndex, in
11831181 var wheelColor = 0 ;
11841182 var dashColor = 0 ;
11851183 var intColor = 0 ;
1186-
1184+
11871185 GetVehicleColours ( veh . Handle , ref primaryColor , ref secondaryColor ) ;
11881186 GetVehicleExtraColours ( veh . Handle , ref pearlColor , ref wheelColor ) ;
11891187 GetVehicleDashboardColour ( veh . Handle , ref dashColor ) ;
@@ -1337,7 +1335,6 @@ void HandleListIndexChanges(Menu sender, MenuListItem listItem, int oldIndex, in
13371335
13381336 CreateCustomColourMenu ( customColourMenuPrimary , RGBType . primaryPaint ) ;
13391337 primaryColorsMenu . OnListIndexChange += HandleListIndexChanges ;
1340- //primaryColorsMenu.OnItemSelect += HandleItemSelect;
13411338 }
13421339 else
13431340 {
@@ -1355,7 +1352,6 @@ void HandleListIndexChanges(Menu sender, MenuListItem listItem, int oldIndex, in
13551352
13561353 CreateCustomColourMenu ( customColourMenuSecondary , RGBType . secondaryPaint ) ;
13571354 secondaryColorsMenu . OnListIndexChange += HandleListIndexChanges ;
1358- //secondaryColorsMenu.OnItemSelect += HandleItemSelect;
13591355 }
13601356 }
13611357
@@ -2621,8 +2617,6 @@ public static void CreateCustomColourMenu(Menu menu, RGBType type = RGBType.prim
26212617 menu . OnMenuOpen += ( menu ) =>
26222618 {
26232619 Vehicle vehicle = GetVehicle ( ) ;
2624-
2625- OutputArgument paintType = new OutputArgument ( - 1 ) ;
26262620
26272621 if ( type == RGBType . primaryPaint )
26282622 GetVehicleCustomPrimaryColour ( vehicle . Handle , ref r , ref g , ref b ) ;
0 commit comments