public static async Task<VehicleEntity> CreateAsync(PlusVehicle plusVehicle)
{
var vehicle = (VehicleEntity)await AltAsync.CreateVehicle(plusVehicle.Info.Model, (Vector3)plusVehicle.Position,
plusVehicle.Rotation);
if (vehicle is not { Exists: true }) return null;
await vehicle.LoadAsync(plusVehicle);
return vehicle;
}
In v14 the vehicle gets created properly, in dev224 of v15 the server stops at AltAsync.CreateVehicle forever. The error only appears if we try to create the vehicles in the constructor of a class with the IScript interface implemented.
We use the following code to create a vehicle:
In v14 the vehicle gets created properly, in dev224 of v15 the server stops at
AltAsync.CreateVehicle
forever. The error only appears if we try to create the vehicles in the constructor of a class with theIScript
interface implemented.