Posts: 513
Threads: 4
Joined: Jun 2015
Reputation:
0
It IS actually a problem. SetVehicleZAngle shouldn't require a streamed player in order to apply the update.
Posts: 33
Threads: 4
Joined: Sep 2008
Reputation:
0
08.07.2015, 22:05
(
Последний раз редактировалось Raphinity; 09.07.2015 в 02:12.
)
I confirm this bug.
We have to set the vehicle z-angle in OnVehicleStreamIn.
Another solution is to destroy and recreate the vehicle for setting its new z-angle...
Posts: 3,324
Threads: 96
Joined: Sep 2013
08.07.2015, 22:24
(
Последний раз редактировалось Crayder; 28.03.2016 в 18:26.
)
Hook SetVehicleZAngle.
If the vehicle isn't streamed in for any player, set a timer.
In the timer keep setting it again until GetVehicleZAngle retrieves the desired angle.
This IS a GTA bug, not SA-MP. The game natively destroys and creates vehicles as they stream for the player, it's the in-built streamer in SA-MP that allows that. You could do these same things with a reference to the car in CLEO, the results will be the same (if the vehicle isn't streamed in it won't work). Therefore it could be natively fixed, but until then quick whining.
Kurta's streamer fork with vehicle support fixes this since it manually streams vehicles.