ResetWaterColor: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 2: Line 2:
{{Client function}}
{{Client function}}
This function reset the water color of the GTA world to default.
This function reset the water color of the GTA world to default.
{{New_feature|3.0110|1.1|
resetWaterColor will work server-side as well. In 1.0.4 and lower, setWaterColor is only available client-side.
}}


==Syntax==
==Syntax==

Revision as of 18:09, 27 November 2010

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

resetWaterColor will work server-side as well. In 1.0.4 and lower, setWaterColor is only available client-side.

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