ResetWaterColor: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (ResetWaterColour moved to ResetWaterColor: stupid typo)
mNo edit summary
Line 15: Line 15:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
function changeWaterBackToNormal ()
function changeWaterBackToNormal ()
     resetWaterColour ()
     resetWaterColor ()
end
end
addCommandHandler ( "resetwatercolor", changeWaterBackToNormal )
addCommandHandler ( "resetwatercolor", changeWaterBackToNormal )

Revision as of 17:46, 3 May 2009

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

See Also