Example #1
0
 /// <summary>
 /// Create a vehicle using all createVehicle arguments
 /// </summary>
 public Vehicle(VehicleModel model, Vector3 position, Vector3 rotation, string numberplate = "", int variant1 = 1, int variant2 = 1)
     : base(model, position, rotation, numberplate, variant1, variant2)
 {
 }
Example #2
0
 /// <summary>
 /// Create a vehicle using all createVehicle arguments
 /// </summary>
 protected BaseVehicle(VehicleModel model, Vector3 position, Vector3 rotation, string numberplate = "", int variant1 = 1, int variant2 = 1)
     : this(MtaServer.CreateVehicle(model.Id, position.X, position.Y, position.Z, rotation.X, rotation.Y, rotation.Z, numberplate, false, variant1, variant2))
 {
 }
Example #3
0
 /// <summary>
 /// Create a vehicle from a model at a position
 /// </summary>
 public Vehicle(VehicleModel model, Vector3 position)
     : this(model, position, Vector3.Zero)
 {
 }