ResetWaterColor

From Multi Theft Auto: Wiki
Revision as of 17:45, 3 May 2009 by Awwu (talk | contribs) (New page: __NOTOC__ {{Client function}} This function reset the water color of the GTA world to default. ==Syntax== <syntaxhighlight lang="lua"> bool resetWaterColor () </syntaxhighlight> ===Returns=== Returns ''true'' if...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Syntax

bool resetWaterColor ()

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 ()
    resetWaterColour ()
end
addCommandHandler ( "resetwatercolor", changeWaterBackToNormal )

See Also