SetVehicleZAngle
#21

It IS actually a problem. SetVehicleZAngle shouldn't require a streamed player in order to apply the update.
Reply
#22

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...
Reply
#23

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)