CopyToClipboard

From Onset Developer Wiki
Revision as of 18:02, 3 February 2022 by BlueMountains (talk | contribs) (Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|Copy text to the clipboard. Only works in dev mode.}} {{FuncSyntax|CopyToClipboard(text)}} {{FuncParameters}} {{FuncParam|tex...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
CopyToClipboard

Type: Function
Context: Client
Introduced: v1.0

Description

Copy text to the clipboard. Only works in dev mode.

Syntax

CopyToClipboard(text)

Parameters

  • text
    The text to copy.

Return Value

  • Returns nothing.

Example

AddEvent("OnPackageStart", function()
	if IsDevMode() then
		CopyToClipboard("text....")
	end
end)

See also