GetPostFXValue

From Multi Theft Auto: Wiki
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