Пример #1
0
        /// <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));
        }