mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

isElementInWater in vehicles

Open FileEX opened this issue 3 years ago • 1 comments

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 avatar Feb 13 '22 04:02 FileEX

Can be closed, fix is part of r21160

Fernando-A-Rocha avatar Jun 14 '22 21:06 Fernando-A-Rocha

Fixed in 29f303860e5404aa98a2a69ca5a3b6e80eebd2df

lopezloo avatar Oct 13 '22 12:10 lopezloo