ResetWaterColor: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (How hard can copying be?)
m (fix typo)
 
(5 intermediate revisions by 3 users not shown)
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.
{{New_feature|3.0110|1.1|
resetWaterColor will work server-side as well. In 1.0.4 and lower, resetWaterColor is only available client-side.
}}


==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool resetWaterColor ()
bool resetWaterColor ( )
</syntaxhighlight>  
</syntaxhighlight>  
{{OOP||[[Water]].resetColor}}


===Returns===
===Returns===

Latest revision as of 14:30, 7 August 2016

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