When a vehicle is owned by a player and unlocked, the default animation of carjacking the vehicle sometimes plays, destroying the vehicle's window.
Ideal solution
Use TaskEnterVehicle to force the player to enter owned player vehicles normally, so that they aren't smashing windows of player vehicles. I'm not sure how, but maybe also stolen vehicles that players have keys to.
The problem
When a vehicle is owned by a player and unlocked, the default animation of carjacking the vehicle sometimes plays, destroying the vehicle's window.
Ideal solution
Use TaskEnterVehicle to force the player to enter owned player vehicles normally, so that they aren't smashing windows of player vehicles. I'm not sure how, but maybe also stolen vehicles that players have keys to.
Alternative solutions
N/A
Additional context
N/A