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

Function

setWorldProperty

ServerWorldIdentical to MTA:SA

Stores a named world property of up to three numbers, e.g. a colour or an effect intensity from the list (AmbientColor, LightsOnGround, SpriteBrightness, etc.). The name is case-insensitive.

Syntax

bool setWorldProperty(string property [, float a = 0, float b = 0, float c = 0])

Arguments

propertystring
Property name.
afloat, optional = 0
First number.
bfloat, optional = 0
Second number.
cfloat, optional = 0
Third number.

Returns

true on success.

Example

setWorldProperty("AmbientColor", 0.6, 0.5, 0.4)

Notes

State for scripts. The game does not apply these values yet.

See also