resetWaterLevel
Client-side
Server-side
Shared
Manual Review Required
Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.
This function resets the water of the GTA world back to its default level. Water elements are not affected.
OOP Syntax Help! I don't understand this!
- Method:Water.)(...)
Syntax
bool resetWaterLevel ( )Returns
- bool: value
Returns true if water level was reset correctly, false otherwise.
Code Examples
shared
This example adds a commandresetwaterlevelwith which a player can reset the water level.
function changeWaterLevelBackToNormal () resetWaterLevel ()endaddCommandHandler ( "resetwaterlevel", changeWaterLevelBackToNormal )