Describe the bug
If you use removePedFromVehicle(enteringPlayer, source) in onVehicleStartEnter, it will cause a network trouble after a few seconds.
To reproduce
I've provided a resource. It also comes with instructions when you run it.
Please paste reproduction resources (zip files) directly into this section.
-->vbug.zip
Expected behaviour
To not happen
Version
Multi Theft Auto v1.5.7-release-20582
Additional context
I know it's not normal to use this in correctly working scripts, but if your mind goes woof like mine did, and you copy paste lines of code, if you use this part of code, it'll cause a network trouble.
Yeah I just tried It, you get network trouble
I guess here we can just document that It wont work when entering the vehicle.
Also Instead of removePedFromVehicle you can just use cancelEvent here
Most helpful comment
Yeah I just tried It, you get network trouble