guiMemoSetReadOnly | Multi Theft Auto: Wiki Skip to content

guiMemoSetReadOnly

Client-side
Server-side
Shared

Pair: guiMemoIsReadOnly

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 allows you to set or remove read-only status for a GUI memo. If read-only is set to true, the contents are not editable.

Syntax

guiMemoSetReadOnly ( )

Code Examples

client
addEventHandler( "onClientResourceStart", resourceRoot, -- only execute the code when this resource restarts
function( )
memo = guiCreateMemo( 0.4, 0.4, 0.2, 0.2, "This is a memo.", true ) -- create a relative memo GUI element
guiMemoSetReadOnly( memo, true ) -- make it read only, so players won't be able to edit it in-game
end
)

See Also

GUI Functions