Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions vMenu/menus/VehicleSpawner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading