ResetColorFilter: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0160|1.5.8|20718|This function is used to reset the color filtering to its default values.}} ==Syntax== <syntaxhighlight...")
(No difference)

Revision as of 10:16, 9 November 2020

This function is used to reset the color filtering to its default values.

Syntax

bool resetColorFilter ()

Returns

Returns true if the color filtering was reset, false otherwise.

Example

This example lets any player reset the color filtering

function resetFilter()
   resetColorFilter()
end
addCommandHandler("reset_filter", resetFilter) -- Add the command

See Also

Shared