From 1f5c3575768bd76b4528ceb001e4e555af8d6231 Mon Sep 17 00:00:00 2001 From: mikigoalie Date: Tue, 27 Jun 2023 20:39:50 +0200 Subject: [PATCH] add textUiOpen, format addCommand example (#131) --- pages/ox_lib/Modules/AddCommand/Server.mdx | 3 ++- .../Modules/Interface/Client/textui.mdx | 24 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/pages/ox_lib/Modules/AddCommand/Server.mdx b/pages/ox_lib/Modules/AddCommand/Server.mdx index f2c8742a..adb83ad2 100644 --- a/pages/ox_lib/Modules/AddCommand/Server.mdx +++ b/pages/ox_lib/Modules/AddCommand/Server.mdx @@ -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', diff --git a/pages/ox_lib/Modules/Interface/Client/textui.mdx b/pages/ox_lib/Modules/Interface/Client/textui.mdx index 2189938b..02e10fdd 100644 --- a/pages/ox_lib/Modules/Interface/Client/textui.mdx +++ b/pages/ox_lib/Modules/Interface/Client/textui.mdx @@ -127,4 +127,28 @@ lib.showTextUI('[E] - Pick apple', { +### lib.isTextUIOpen + +Returns whether Text UI is opened or not + + + + +```lua +lib.isTextUIOpen() +``` + + + + +```ts +import lib from '@overextended/ox_lib/client'; + +lib.isTextUIOpen(); +``` + + + + + ![custom_example](https://i.imgur.com/sy9lPC0.png)