setClipboard
Client
Copies a text to the player's computer clipboard.
bool setClipboard(string text)
Parameters
| Name | Type | Description |
|---|---|---|
| text | string | The text. |
Returns
true.
Example
addCommandHandler("copypos", function()
local pos = getElementPosition(localPlayer)
setClipboard(("%.2f, %.2f, %.2f"):format(pos.x, pos.y, pos.z))
end)