ResetWaterLevel

From Multi Theft Auto: Wiki
Revision as of 00:55, 14 December 2011 by Ccw (talk | contribs) (Created page with "__NOTOC__ {{Server client function}} This function resets the water of the GTA world back to its default level. Water elements are not affected. ==Syntax== <syntaxhighlight lang="lua">[lua,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function resets the water of the GTA world back to its default level. Water elements are not affected.

Syntax

bool resetWaterLevel ()

Returns

Returns true if water level was reset correctly, false otherwise.

Example

This example adds a command resetwaterlevel with which a player can reset the water level.

function changeWaterLevelBackToNormal ()
    resetWaterLevel ()
end
addCommandHandler ( "resetwaterlevel", changeWaterLevelBackToNormal )

Requirements

This template will be deleted.

See Also