GetPostFXMode

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.6 r23644:

Gets the current mode of PostFX.

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
)

See Also