diff --git a/vMenu/menus/VehicleSpawner.cs b/vMenu/menus/VehicleSpawner.cs index 0a6c6dee4..8bedababd 100644 --- a/vMenu/menus/VehicleSpawner.cs +++ b/vMenu/menus/VehicleSpawner.cs @@ -94,12 +94,14 @@ private void CreateMenu() Label = $"({veh.Key})", ItemData = veh.Key // store the model name in the button data. }; - - if (!SupplementaryPermissionManager.IsAllowed("VW" + veh.Key)) + if (WhitelistVehicles.ContainsKey(veh.Key.ToLower())) { - carBtn.Enabled = false; - carBtn.LeftIcon = MenuItem.Icon.LOCK; - carBtn.Description = "Access to this has been restricted by the server owner."; + if (!SupplementaryPermissionManager.IsAllowed("VW" + veh.Key)) + { + carBtn.Enabled = false; + carBtn.LeftIcon = MenuItem.Icon.LOCK; + carBtn.Description = "Access to this has been restricted by the server owner."; + } } // This should be impossible to be false, but we check it anyway.