guiEditIsMasked | Multi Theft Auto: Wiki Skip to content

guiEditIsMasked

Client-side
Server-side
Shared

Pair: guiEditSetMasked

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 checks if an edit box is masked.

Syntax

guiEditIsMasked ( )

Code Examples

client
function createPasswordEdit( )
local password = guiCreateEdit( 0.845, 0.94, 0.15, 0.05, "password", true ) -- create edit box for a password
if password then -- if it was successfully created
guiEditSetMasked( password, true ) -- make it masked
end
addCommandHandler( "isMasked",
function( )
local masked = guiEditIsMasked( password ) -- check the edit box masked flag
outputChatBox( "Edit field is " .. ( masked and "masked" or "not masked" ) ) -- show info about edit box
end
)
end
addEventHandler( "onClientResourceStart", resourceRoot, createPasswordEdit )

See Also

GUI Functions