SetWaterDrawnLast
From Multi Theft Auto: Wiki
This function changes the water rendering order.
Syntax
bool setWaterDrawnLast ( bool bEnabled )
Required Arguments
- bEnabled: A boolean value determining whether water should be drawn last.
Returns
Returns true if the rendering order was changed successfully, false otherwise.
Example
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)
Requirements
Minimum supported server | n/a |
---|---|
Minimum supported client | 1.3.0.04585 |
Note: Using this function requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.3.0.04585" />