mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
add textUiOpen, format addCommand example (#131)
This commit is contained in:
1 parent
7b4f167202
commit
1f5c357576
2 files changed
+26
-1
No files matched your search
@@ -21,7 +21,8 @@ lib.addCommand('giveitem', {
|
|||||||
{
|
{
|
||||||
name = 'target',
|
name = 'target',
|
||||||
type = 'playerId',
|
type = 'playerId',
|
||||||
help = 'Target player\'s server id', },
|
help = 'Target player\'s server id',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name = 'item',
|
name = 'item',
|
||||||
type = 'string',
|
type = 'string',
|
||||||
|
|||||||
@@ -127,4 +127,28 @@ lib.showTextUI('[E] - Pick apple', {
|
|||||||
</Tab>
|
</Tab>
|
||||||
</Tabs>
|
</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>
|
||||||
|
|
||||||
|
|
||||||

|

|
||||||
Reference in new issue
Block a user