ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getColorFilter

Function

getColorFilter

Server and clientWorldModified from MTA:SA

Returns the colour filter set with setColorFilter. On the client it returns the local filter, or the server filter without it.

Syntax

int... getColorFilter()

Differences from MTA:SA

  • These MTA:SA arguments are not here: bool isOriginal

In MTA:SA

getColorFilter(bool isOriginal)

Returns

Eight components (r1, g1, b1, a1, r2, g2, b2, a2), or false when there is no filter.

Example

local r, g, b, a = getColorFilter()
if r then outputDebugString(("Filtr %d %d %d %d"):format(r, g, b, a)) end

See also