CopyToClipboard

From Onset Developer Wiki
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