- Documentation
- Client events
- onClientPaste
Event
onClientPaste
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)