GetPostFXValue: Difference between revisions
Jump to navigation
Jump to search
(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...") |
(No difference)
|
Latest revision as of 11:06, 3 December 2025
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
)