OnClientPaste: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Client event}} __NOTOC__ This event triggers when user paste whatever ('''CTRL + V'''). '''This event isn't triggers if menu or console is visible or if any browser is focu...")
 
Line 6: Line 6:
<syntaxhighlight lang="lua">string clipboardText
<syntaxhighlight lang="lua">string clipboardText
</syntaxhighlight>
</syntaxhighlight>
* '''clipboardText''': a [[string]] representing the pasted value from clipboard.
* '''clipboardText''': a [[string]] representing the pasted value from clipboard. test


==Source==
==Source==

Revision as of 17:54, 20 June 2019

This event triggers when user paste whatever (CTRL + V). This event isn't triggers if menu or console is visible or if any browser is focused, or if cursor is invisible.

Parameters

string clipboardText
  • clipboardText: a string representing the pasted value from clipboard. test

Source

The source of this event is the client's root element.

Example

Example show what player paste from clipboard.

addEventHandler("onClientPaste", root, function(text)
    outputChatBox("Clipboard value: "..text, 255,255,255)
end)

See Also

Client event functions