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

isElementInWater in vehicles #2545

Closed
FileEX opened this issue Feb 13, 2022 · 2 comments
Closed

isElementInWater in vehicles #2545

FileEX opened this issue Feb 13, 2022 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@FileEX
Copy link
Contributor

FileEX commented Feb 13, 2022

Describe the bug
isElementInWater returns false if ped or player is in vehicle - Returns true only for the vehicle.
This bug occurs only on client side

To reproduce

  1. Get vehicle
  2. Drive into the water
print(isElementInWater(me)) -- false
print(isElementInWater(me.vehicle)) -- true

Expected behaviour
isElementInWater should returns true also for peds/players which are in vehicle in water

Screenshots

Version
1.5.9

Additional context

@FileEX FileEX added the bug Something isn't working label Feb 13, 2022
@patrikjuvonen patrikjuvonen added the good first issue Good for newcomers label Feb 13, 2022
matheustkn added a commit to matheustkn/mtasa-blue that referenced this issue Feb 20, 2022
Dutchman101 pushed a commit that referenced this issue Apr 8, 2022
Fixed issue #2545
@Fernando-A-Rocha
Copy link
Contributor

Can be closed, fix is part of r21160

@lopezloo
Copy link
Member

Fixed in 29f3038

@patrikjuvonen patrikjuvonen added this to the Next Release (1.6.0) milestone Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants