move ox_lib modules to subdirectory

This commit is contained in:
Linden committed 2023-05-22 17:18:43 +10:00
1 parent 97b129e0fa
commit ba094e1fb3
42 files changed
+1 -1

No files matched your search

@@ -0,0 +1,43 @@
---
title: Clipboard
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
### lib.setClipboard
Sets the player's clipboard to the specified string value.
:::caution
Will not work if focus is already taken by some NUI component.
:::
:::caution
To create a new line use `\t\n` not just `\n` in your string.
:::
<Tabs>
<TabItem value='Lua'>
```lua
lib.setClipboard(value)
```
</TabItem>
<TabItem value='JS/TS'>
```ts
import lib from '@overextended/ox_lib/client'
lib.setClipboard(value)
```
</TabItem>
</Tabs>
* value: `string`