IsPostFXEnabled
Jump to navigation
Jump to search
Syntax
bool IsPostFXEnabled ( string fxType )
Required arguments
- fxType: An string of the PostFX. Possible values are:
- Gamma
- Brightness
- Contrast
- Saturation
Returns
Returns true if the selected type is enabled, otherwise false
Example
This example gets whether the gamma PostFX is enabled and displays it in the chat.
addCommandHandler("isGammaEnabled",
function()
local isEnabled = isPostFXEnabled("Gamma")
outputChatBox("Your gamma mode is: "..(isEnabled and "Enabled" or "Disabled"))
end, false, false
)