GetPostFXMode
Jump to navigation
Jump to search
Syntax
int getPostFXMode ( )
Returns
An integer for the current PostFX mode:
- 0: Disabled
- 1: Enabled in fullscreen mode
- 2: Enabled in windowed/borderless mode
Example
This example gets the current PostFX mode and displays it in the chat.
local modes = {
[0] = "Disabled",
[1] = "Enabled in fullscreen mode",
[2] = "Enabled in windowed/borderless mode"
}
addCommandHandler("getMyMode",
function()
local currentMode = getPostFXMode()
outputChatBox("Your PostFX mode is: "..modes[currentMode])
end, false, false
)