예제 #1
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(MtaClient.CreateVehicle(model.Id, position.X, position.Y, position.Z, rotation.X, rotation.Y, rotation.Z, numberplate, variant1, variant2))
 {
 }
예제 #2
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)
 {
 }
예제 #3
0
 internal VehicleModelDummy(VehicleModel model, string dummyName)
 {
     this.model     = model;
     this.dummyName = dummyName;
 }
예제 #4
0
 /// <summary>
 /// Create a vehicle from a model at a position
 /// </summary>
 public Vehicle(VehicleModel model, Vector3 position)
     : this(model, position, Vector3.Zero)
 {
 }