ResetWaterColor

From Multi Theft Auto: Wiki
Revision as of 02:19, 19 May 2011 by Ccw (talk | contribs)
Jump to navigation Jump to search

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

Available server-side. Only available client-side for 1.0.x

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

See Also