wip js/ts examples

This commit is contained in:
Luke committed 2022-09-16 17:43:47 +02:00
1 parent 3aee4976c3
commit d44c42104e
7 files changed
+602 -163

No files matched your search

+17 -1
View File
@@ -2,12 +2,28 @@
title: Clipboard
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
### lib.setClipboard
Sets the player's clipboard to the specified string value.
<Tabs>
<TabItem value='Lua'>
```lua
-- value: string
lib.setClipboard(value)
```
</TabItem>
<TabItem value='JS/TS'>
```ts
import lib from '@overextended/ox_lib/client'
lib.setClipboard(value)
```
</TabItem>
</Tabs>
* value: `string`