Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AltAsync.CreateVehicle stopped working properly in dev15 #752

Open
vanlueckn opened this issue Jun 9, 2023 · 1 comment
Open

AltAsync.CreateVehicle stopped working properly in dev15 #752

vanlueckn opened this issue Jun 9, 2023 · 1 comment

Comments

@vanlueckn
Copy link

vanlueckn commented Jun 9, 2023

We use the following code to create a vehicle:

  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.

@Doxoh
Copy link
Contributor

Doxoh commented Feb 7, 2024

can u retest with latest nuget version 16.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants