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

Function

getWorldProperty

ServerWorldIdentical to MTA:SA

Returns the numbers stored under a name with setWorldProperty.

Syntax

float, float, float getWorldProperty(string property)

Arguments

propertystring
Property name.

Returns

Three numbers, or false when not set.

Example

local r, g, b = getWorldProperty("AmbientColor")

See also