ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. getPostEffect

Function

getPostEffect

ClientWorldTrilogy Hub only

Returns the value of an image effect set with setPostEffect or by the server (the colour filter as "tint", grain as "grain").

Syntax

float... getPostEffect(string name)

Arguments

namestring
The effect name.

Returns

The value (for "tint" three numbers 0-255, for colour effects four: r, g, b, overall) or false when the effect has the game default.

Example

local exposure = getPostEffect("exposure")
outputChatBox("Ekspozycja: " .. tostring(exposure or 0))

See also