Skip to content

Commit

Permalink
hopefully this fixes the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyB505 committed Sep 17, 2023
1 parent c4b2586 commit 1270a97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vMenu/menus/VehicleSpawner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@ private void CreateMenu()
foreach (string model in vehiclesjson["vehicles"])
{
// Get the vehicle make name using the "GetMakeNameFromVehicleModel()" function.
if (!DoesModelExist(model))
{
return;
}
string makeName = GetMakeNameFromVehicleModel((uint)GetHashKey(model));

// Check if the makeName is null or empty, and if so, put the model in the "Unknown" category.
if (string.IsNullOrEmpty(makeName))
{
Expand Down

0 comments on commit 1270a97

Please sign in to comment.