Files
overextended.github.io/pages/ox_lib/Modules/Interface/Client/clipboard.mdx
T
JagandLuke 1d2c490b26 refactor: Add h1 headers to all pages missing it (#137)
* refactor: Add h1 headers to all pages missing it

* refactor: missed example h3

* change hooks example heading to bold text

---------

Co-authored-by: Luke <[email protected]>
2023-07-08 11:08:43 +02:00

38 lines
662 B
Plaintext

---
title: Clipboard
---
import { Tabs, Tab } from 'nextra-theme-docs';
import { Callout } from 'nextra/components';
# Clipboard
## lib.setClipboard
Sets the player's clipboard to the specified string value.
<Callout>
Will not work if focus is already taken by some NUI component.
</Callout>
<Callout>
To create a new line use `\t\n` not just `\n` in your string.
</Callout>
<Tabs items={["Lua", "JS"]}>
<Tab>
```lua
lib.setClipboard(value)
```
</Tab>
<Tab>
```ts
import lib from '@overextended/ox_lib/client';
lib.setClipboard(value);
```
</Tab>
</Tabs>
- value: `string`