isElementInWater | Multi Theft Auto: Wiki Skip to content

isElementInWater

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function checks whether an element is submerged in water.

Syntax

isElementInWater ( )

Code Examples

server
function waterCheck(thePlayer)
if isElementInWater(thePlayer) then
outputChatBox("Wet.", thePlayer)
else
outputChatBox("Dry.", thePlayer)
end
end
addCommandHandler("check", waterCheck)

See Also

Element Functions