ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientPaste

Event

onClientPaste

ClientInput and controlsIdentical to MTA:SA

The player pressed Ctrl+V in the game, outside a GUI or browser window with a text field. The resource gets the clipboard text only then; it cannot read it in the background.

Handler

addEventHandler("onClientPaste", root, function(text) ... end)

Parameters

textstring
The clipboard text (up to 64 KB).

Source

source is root.

Example

addEventHandler("onClientPaste", root, function(text)
    outputChatBox("Wklejono " .. #text .. " znaków")
end)

See also