ResetWaterColor

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This function reset the water color of the GTA world to default.

Syntax

bool resetWaterColor ( )


OOP Syntax Help! I don't understand this!

Method: Water.resetColor(...)


Returns

Returns true if water color was reset correctly, false otherwise.

Example

This example adds a command resetwatercolor with which a player can reset the water colour.

function changeWaterBackToNormal ()
    resetWaterColor ()
end
addCommandHandler ( "resetwatercolor", changeWaterBackToNormal )

See Also