mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 03:43:15 +08:00
Fix the issue of some vehicles of the same model and license plate missing in the garage. (#793)
This commit is contained in:
@@ -224,6 +224,7 @@ namespace YimMenu
|
||||
case 3: return HUD::GET_FILENAME_FOR_AUDIO_CONVERSATION("MSG_B4"); // Eclipse Blvd Garage B4
|
||||
case 4: return HUD::GET_FILENAME_FOR_AUDIO_CONVERSATION("MSG_B5"); // Eclipse Blvd Garage B5
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 30: // The Vinewood Club Garage
|
||||
{
|
||||
@@ -236,6 +237,7 @@ namespace YimMenu
|
||||
case 3: return HUD::GET_FILENAME_FOR_AUDIO_CONVERSATION("VPG_B4"); // Basement Level 4
|
||||
case 4: return HUD::GET_FILENAME_FOR_AUDIO_CONVERSATION("VPG_B5"); // Basement Level 5
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 31: return HUD::GET_FILENAME_FOR_AUDIO_CONVERSATION("BO_GARNAME"); // Bail Office
|
||||
case 32: return HUD::GET_FILENAME_FOR_AUDIO_CONVERSATION("HD_GARNAME"); // Garment Factory
|
||||
@@ -257,12 +259,12 @@ namespace YimMenu
|
||||
{
|
||||
m_Model = m_Data->VehicleModel;
|
||||
m_Plate = m_Data->NumberPlateText;
|
||||
m_Name = std::format("{} ({})", HUD::GET_FILENAME_FOR_AUDIO_CONVERSATION(VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(m_Model)), m_Plate);
|
||||
m_Name = std::format("{} ({})##{}", HUD::GET_FILENAME_FOR_AUDIO_CONVERSATION(VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(m_Model)), m_Plate, m_Id);
|
||||
|
||||
SetGarage();
|
||||
}
|
||||
|
||||
int PersonalVehicles::PersonalVehicle::GetId()
|
||||
int PersonalVehicles::PersonalVehicle::GetId() const
|
||||
{
|
||||
return m_Id;
|
||||
}
|
||||
@@ -272,7 +274,7 @@ namespace YimMenu
|
||||
return m_Data;
|
||||
}
|
||||
|
||||
joaat_t PersonalVehicles::PersonalVehicle::GetModel()
|
||||
joaat_t PersonalVehicles::PersonalVehicle::GetModel() const
|
||||
{
|
||||
return m_Model;
|
||||
}
|
||||
|
||||
@@ -23,9 +23,9 @@ namespace YimMenu
|
||||
public:
|
||||
PersonalVehicle(int id, MPSV_Entry* data);
|
||||
|
||||
int GetId();
|
||||
int GetId() const;
|
||||
MPSV_Entry* GetData();
|
||||
joaat_t GetModel();
|
||||
joaat_t GetModel() const;
|
||||
std::string GetPlate();
|
||||
std::string GetName();
|
||||
std::string GetGarage();
|
||||
|
||||
Reference in New Issue
Block a user