add textUiOpen, format addCommand example (#131)

This commit is contained in:
mikigoalie authored and GitHub committed 2023-06-27 20:39:50 +02:00
1 parent 7b4f167202
commit 1f5c357576
2 files changed
+26 -1

No files matched your search

+2 -1
View File
@@ -21,7 +21,8 @@ lib.addCommand('giveitem', {
{
name = 'target',
type = 'playerId',
help = 'Target player\'s server id', },
help = 'Target player\'s server id',
},
{
name = 'item',
type = 'string',
@@ -127,4 +127,28 @@ lib.showTextUI('[E] - Pick apple', {
</Tab>
</Tabs>
### lib.isTextUIOpen
Returns whether Text UI is opened or not
<Tabs items={["Lua", "JS"]}>
<Tab>
```lua
lib.isTextUIOpen()
```
</Tab>
<Tab>
```ts
import lib from '@overextended/ox_lib/client';
lib.isTextUIOpen();
```
</Tab>
</Tabs>
![custom_example](https://i.imgur.com/sy9lPC0.png)