/// <summary> /// Gets this <see cref="Vehicle"/> <see cref="Model"/> manufacturer name /// </summary> /// <param name="vehicleModel">the <see cref="Model"/>. (must be a vehicle model)</param> public static string GetMakeName(this Model vehicleModel) { string labelName = NativeWrappers.GetMakeNameFromVehicleModel(vehicleModel.Hash); if (string.IsNullOrWhiteSpace(labelName)) { return(string.Empty); } return(NativeWrappers.GetLabelText(labelName)); }
/// <summary> /// Gets the vehicle <see cref="Model"/> display name or the <see cref="Game"/> name /// </summary> /// <param name="vehicleModel">the <see cref="Model"/>. (must be a vehicle model)</param> public static string GetDisplayName(this Model vehicleModel) { string labelName = NativeWrappers.GetDisplayNameFromVehicleModel(vehicleModel.Hash); return(NativeWrappers.GetLabelText(labelName)); }