Difference between revisions of "ResetWaterColor"

From Multi Theft Auto: Wiki
m
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
{{Client function}}
+
{{Server 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.
  
Line 9: Line 9:
 
==Syntax==
 
==Syntax==
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
bool resetWaterColor ()
+
bool resetWaterColor ( )
 
</syntaxhighlight>  
 
</syntaxhighlight>  
  

Revision as of 12:38, 4 September 2011

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