onClientPaste | Multi Theft Auto: Wiki Skip to content

onClientPaste

Client-side
Server-side
Shared

This event triggers when user paste whatever (CTRL + V). This event isn't triggered 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.

Source

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

Code Examples

client

Example show what player paste from clipboard.

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