Garry's Mod Wiki

SetClipboardText

  SetClipboardText( string text )

Description

Adds the given string to the computers clipboard, which can then be pasted in or outside of GMod with Ctrl + V.

Arguments

1 string text
The text to add to the clipboard.

Example

Sets the clipboards text to "Hello!".

SetClipboardText( "Hello!" )