altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

vehicle.pos setter bug

Open Lekenthu opened this issue 1 year ago • 4 comments

Description of the problem

Since the last alt:V update, it is not possible to teleport a vehicle when the player is in the vehicle, for example as a driver. The vehicle will appear in the new position for a moment and then teleport back to the old position the player.

Reproduction steps

Example script:

if(target.vehicle) {
        target.vehicle.dimension = player.dimension;
        target.vehicle.pos = {x: player.pos.x+2, y: player.pos.y+2, z: player.pos.z};
        target.dimension = player.dimension;
}

Expected behaviour

.

Additional context

No response

Operating system

Windows 11

Version

alt:V build #16.2.15, branch release

Crashdump ID

No response

Confirmation of issue's presence

  • [X] By submitting this ticket, I affirm that I have verified the presence of this issue on the latest RC (Release Candidate) version available at the time of writing this ticket.

Lekenthu avatar Oct 24 '24 22:10 Lekenthu