ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setWindowFlashing

Function

setWindowFlashing

ClientInput and controlsIdentical to MTA:SA

Flashes the game icon on the taskbar, e.g. when the player got a private message while the window is in the background. In the current client version the function is not wired to the game yet and returns false with a console warning.

Syntax

bool setWindowFlashing(bool enabled [, int count = 10])

Arguments

enabledbool
true = flash, false = stop.
countint, optional = 10
How many times to flash.

Returns

true on success.

Example

addEvent("onPrivateMessage", true)
addEventHandler("onPrivateMessage", root, function()
    setWindowFlashing(true, 5)
end)

See also