/// <summary> /// Get a vehicle model from the model name as a string, instantiated as the right model class /// </summary> /// <param name="name">The Mta name of the vehicle</param> /// <returns>The Vehicle model, instantiated as the right model class</returns> public static VehicleModel FromName(string name) { return(FromId(MtaShared.GetVehicleModelFromName(name))); }
/// <summary> /// Get a vehicle model from the model name as a string /// </summary> public static SharedVehicleModel FromName(string name) { int id = MtaShared.GetVehicleModelFromName(name); return(new SharedVehicleModel(id)); }