Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using removePedFromVehicle in onVehicleStartEnter causes network trouble #1519

Open
zo3n opened this issue Jun 13, 2020 · 2 comments
Open

Using removePedFromVehicle in onVehicleStartEnter causes network trouble #1519

zo3n opened this issue Jun 13, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@zo3n
Copy link

zo3n commented Jun 13, 2020

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.

@zo3n zo3n added the bug Something isn't working label Jun 13, 2020
@Unde-R
Copy link
Contributor

Unde-R commented Aug 11, 2020

Yeah I just tried It, you get network trouble

@Unde-R
Copy link
Contributor

Unde-R commented Aug 29, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants