Skip to main content
Discovery icon for Multi Theft Auto Discord server

Multi Theft Auto

8,172 Online
108,734 Members
# scripting-help-13 people

fixing custom map water glitches

Troubleshooting custom map-wide water creation in MTA when water tiles flicker, disappear at certain angles, and lack collision.

  • Custom water covering the map can be created using a 4-point table passed to createWater across map coordinates -2998 to 2998
  • Water elements must have their dimension explicitly synchronized with the local player using setElementDimension
  • Lowering default water via setWaterLevel(-10000) prevents visual Z-fighting with custom water at Z = 0
  • A custom water surface can disappear when turning the camera and fail to trigger swimming physics if testLineAgainstWater returns false
  • testLineAgainstWater can be tested in the console across Z heights to verify whether the client detects water geometry
Summarized from recent messages, might be inaccurate

More conversations

Talk, Play, &
Hang Out

Find your space to hang out, discuss the latest updates with the party chat, and see who's down to join your next match.
Get App