ResetColorFilter

From Multi Theft Auto: Wiki
Revision as of 09:07, 20 September 2021 by Lvrent (talk | contribs)
Jump to navigation Jump to search

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 ("resetcolorfilter", resetFilter) -- Add the command

Requirements

Minimum server version n/a
Minimum client version 1.5.8-9.20718

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.8-9.20718" />

See Also