setWaterDrawnLast | Multi Theft Auto: Wiki Skip to content

setWaterDrawnLast

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 changes the water rendering order.

Syntax

setWaterDrawnLast ( )

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)