GetPostFXValue

From Multi Theft Auto: Wiki
Revision as of 11:06, 3 December 2025 by O22 (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0161|1.6|23644| Gets the current float value of the selected PostFX type. }} ==Syntax== <syntaxhighlight lang="lua"> float getPostFXValue ( string fxType ) </syntaxhighlight> ===Required arguments=== *'''fxType''': An string of the PostFX. Possible values are: **'''Gamma''' **'''Brightness''' **'''Contrast''' **'''Saturation''' ===Returns=== Returns the current value of the specified PostFX parameter. ==Example== T...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.6 r23644:

Gets the current float value of the selected PostFX type.

Syntax

float getPostFXValue ( string fxType )

Required arguments

  • fxType: An string of the PostFX. Possible values are:
    • Gamma
    • Brightness
    • Contrast
    • Saturation

Returns

Returns the current value of the specified PostFX parameter.

Example

This example gets the current gamma PostFX value and display it in the chat.

addCommandHandler("getGammaValue", 
    function()
        local gammaValue = getPostFXValue("Gamma")
        outputChatBox("Your gamma value is: "..tostring(gammaValue))
    end, false, false
)

See Also