setColorFilter | Multi Theft Auto: Wiki Skip to content

setColorFilter

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function is used to override the default color filtering values.

Tip

Normally the game is adding these colors to a screen to simulate weather effects. Sometimes it can be important to disable these effects. You can get rid of the effects by calling this function with zero values.

Syntax

setColorFilter ( )

Code Examples

client

This example lets any player disable the default color filtering:

function disableFilter ()
setColorFilter (0, 0, 0, 0, 0, 0, 0, 0)
end
addCommandHandler ("disablecolorfilter", disableFilter) -- Add the command

See Also

World Functions