ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setWaterColor

Function

setWaterColor

ServerWorldIdentical to MTA:SA

Stores the water colour (RGB 0-255) and its opacity (200 by default).

Syntax

bool setWaterColor(int r, int g, int b [, int a = 200])

Arguments

rint
Red.
gint
Green.
bint
Blue.
aint, optional = 200
Opacity 0-255.

Returns

true on success.

Example

setWaterColor(0, 120, 60, 220)

Notes

State for scripts. Water in the game keeps its colour.

See also