Files
overextended.github.io/pages/ox_lib/Modules/Interface/Client/clipboard.mdx
T
2023-06-04 15:15:21 +02:00

44 lines
578 B
Plaintext

---
title: Clipboard
---
import { Tabs, Tab } from 'nextra-theme-docs';
import { Callout } from 'nextra/components';
### 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`