getWorldProperty | Multi Theft Auto: Wiki Skip to content

getWorldProperty

Client-side
Server-side
Shared

Pair: setWorldProperty

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function is used to get the values of time cycle and weather related properties.

Syntax

getWorldProperty ( )

Code Examples

client

This example prints the value of AmbientColor:

local r, g, b = getWorldProperty("AmbientColor")
outputChatBox("Ambient Color: "..table.concat({r, g, b}, ", "))

See Also

World Functions