When warping a ped into a vehicle the vehicle props should already be set otherwise they may fail to set because of entity ownership changes. This moves the prop setting above warping the ped and yields until props are set.
Tested this with two folks with over 100ms latency to the server standing next to each other and props didn't fail to set at all. The wait is for up to 5000ms due to possible issues with streamed vehicles not loading for clients on slow links.
Checklist
[x] I have personally loaded this code into an updated Qbox project and checked all of its functionality.
[x] My pull request fits the contribution guidelines & code conventions.
this actually fixed the issue that I was having with vehicle properties going kaboom when pulling out a vehicle. specially with potato PC users pulling out vehicles :3
Description
When warping a ped into a vehicle the vehicle props should already be set otherwise they may fail to set because of entity ownership changes. This moves the prop setting above warping the ped and yields until props are set.
Tested this with two folks with over 100ms latency to the server standing next to each other and props didn't fail to set at all. The wait is for up to 5000ms due to possible issues with streamed vehicles not loading for clients on slow links.
Checklist