ResetWaterLevel
From Multi Theft Auto: Wiki
This function resets the water of the GTA world back to its default level. Water elements are not affected.
Syntax
bool resetWaterLevel ()
OOP Syntax Help! I don't understand this!
- Method: Water.resetLevel(...)
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
Minimum supported server | 1.2 |
---|---|
Minimum supported client | 1.2 |
Note: Using this function requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version server="1.2" client="1.2" />