Mtasa-blue: Using removePedFromVehicle in onVehicleStartEnter causes network trouble

Created on 13 Jun 2020  路  2Comments  路  Source: multitheftauto/mtasa-blue

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.

  1. Use /vehicle
  2. Press F
  3. Wait for a few seconds.

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.

bug

Most helpful comment

Yeah I just tried It, you get network trouble

All 2 comments

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

Was this page helpful?
0 / 5 - 0 ratings