Qbox-project / qbx_core

http://qbox-project.github.io
Other
46 stars 109 forks source link

refactor: set props before ped warp #417

Closed solareon closed 3 months ago

solareon commented 3 months ago

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

SKITTLE6969 commented 3 months ago

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