21.10.2017, 11:54
I don't think the command is bugged
because the vehicle respawns with the right angle and pos.
If a player pushes the vehicle and uses the respawn command, the vehicle is respawning correctly with the right pos and angle, but if the player leaves the area, goes far away and comes back, the vehicle facing angle is the one how the vehicle was pushed by the player.
Still, data inside the variable and database are the correct one and again if the vehicle gets respawned it spawns with the correct positions.
So it sounds like a desync bug? But what causes it...
So if the player touches or enters the vehicle while facing a way, thats how the vehicle will show for that player
PHP код:
SetVehicleZAngle(rentable, VehicleInfo[rentable][vAngle]);
SetVehiclePos(rentable, VehicleInfo[rentable][vX], VehicleInfo[rentable][vY], VehicleInfo[rentable][vZ]);
If a player pushes the vehicle and uses the respawn command, the vehicle is respawning correctly with the right pos and angle, but if the player leaves the area, goes far away and comes back, the vehicle facing angle is the one how the vehicle was pushed by the player.
Still, data inside the variable and database are the correct one and again if the vehicle gets respawned it spawns with the correct positions.
So it sounds like a desync bug? But what causes it...
So if the player touches or enters the vehicle while facing a way, thats how the vehicle will show for that player