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...")
 
mNo edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Client function}}
{{Client function}}
{{New feature/item|3.0160|1.5.8|20718|This function is used to reset the color filtering to its default values.}}
{{New feature/item|3.0159|1.5.8|20718|This function is used to reset the color filtering to its default values.}}


==Syntax==  
==Syntax==  

Revision as of 11:14, 11 April 2021

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