isWaterDrawnLast | Multi Theft Auto: Wiki Skip to content

isWaterDrawnLast

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 determines whether water is drawn last in the rendering order.

Syntax

isWaterDrawnLast ( )

Code Examples

client

This example toggles water to be drawn last.

function toggleWaterDrawnLast ()
local bWaterDrawnLast = not isWaterDrawnLast()
outputChatBox (string.format('setWaterDrawnLast: %s', tostring(bWaterDrawnLast)))
return setWaterDrawnLast (bWaterDrawnLast)
end
addCommandHandler ('togglewater', toggleWaterDrawnLast)