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

setVehicleVariant turns on the engine, getVehicleEngineState still returns false #542

Open
ArranTuna opened this issue Sep 21, 2018 · 0 comments · May be fixed by #3486
Open

setVehicleVariant turns on the engine, getVehicleEngineState still returns false #542

ArranTuna opened this issue Sep 21, 2018 · 0 comments · May be fixed by #3486
Labels
bug Something isn't working
Milestone

Comments

@ArranTuna
Copy link
Collaborator

ArranTuna commented Sep 21, 2018

Describe the bug
If you turn off your vehicle engine and use setVehicleVariant on it, the engine will go on, tho getVehicleEngineState will still be returning false.

To reproduce

  1. Enter a vehicle
  2. srun setVehicleEngineState(getPedOccupiedVehicle(getPlayerFromName("p")), false)
  3. srun setVehicleVariant(getPedOccupiedVehicle(getPlayerFromName("p")), 0, 0)
  4. srun getVehicleEngineState(getPedOccupiedVehicle(getPlayerFromName("p")))
  5. Engine is on, getVehicleEngineState returning false

Expected behaviour
To not turn engine on when using setVehicleVariant.

Screenshots
If applicable, add screenshots to help explain your problem.

MTA Client:

  • Version:
  • Running in Wine?

MTA Server:

  • Version
  • OS:

Additional context
Add any other context about the problem here

From https://bugs.mtasa.com/view.php?id=8663

@ArranTuna ArranTuna added the bug Something isn't working label Sep 21, 2018
@ArranTuna ArranTuna added this to the Backlog milestone Sep 21, 2018
@Proxy-99 Proxy-99 linked a pull request Jun 17, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant