<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tomozj</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tomozj"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Tomozj"/>
	<updated>2026-06-22T16:42:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiEditSetMasked&amp;diff=15150</id>
		<title>GuiEditSetMasked</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiEditSetMasked&amp;diff=15150"/>
		<updated>2008-01-21T21:42:54Z</updated>

		<summary type="html">&lt;p&gt;Tomozj: Fixed typo &amp;quot;onClienGUIClick&amp;quot; -&amp;gt; &amp;quot;onClientGUIClick&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client_function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function sets or removes masking (covering up the text being typed) for password text fields.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiEditSetMasked ( element theElement, bool status )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''theElement:''' The edit box to be changed.&lt;br /&gt;
*'''status:''' A boolean value indicating whether masking is to be enabled or disabled.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the function is successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates an edit box and an OK button.  The user types in his password, and it checks if the password was correct&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- set our password&lt;br /&gt;
password = &amp;quot;cheeseman&amp;quot;&lt;br /&gt;
&lt;br /&gt;
-- create our button&lt;br /&gt;
button = guiCreateButton( 0.7, 0.1, 0.2, 0.1, &amp;quot;OK&amp;quot;, true )&lt;br /&gt;
-- create an edit box and define it as &amp;quot;editBox&amp;quot;&lt;br /&gt;
editBox = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, &amp;quot;&amp;quot;, true )&lt;br /&gt;
-- ensure that it is masked&lt;br /&gt;
guiEditSetMasked ( editBox, true )&lt;br /&gt;
&lt;br /&gt;
-- set up our function to output the message to the chatbox&lt;br /&gt;
function checkPassword ()&lt;br /&gt;
        local text = guiGetText ( editBox )     -- get the text from the edit box&lt;br /&gt;
        if text == password then                -- if the text matches the password&lt;br /&gt;
                outputChatBox ( &amp;quot;Password Correct!&amp;quot; )&lt;br /&gt;
        else&lt;br /&gt;
                outputChatBox ( &amp;quot;Password Incorrect!&amp;quot; )&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
-- set the function to be called when the OK button is clicked&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, button, checkPassword )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;/div&gt;</summary>
		<author><name>Tomozj</name></author>
	</entry>
</feed>