From 2945edfbab8d2be137b664978ddd104fff777828 Mon Sep 17 00:00:00 2001 From: Dominic <100990090+Waves966@users.noreply.github.com> Date: Sat, 15 Oct 2022 19:50:59 -0600 Subject: [PATCH] tweak(AddKeybind): update to match currentKey in base repo (#57) --- docs/ox_lib/AddKeybind/Client.md | 6 +++--- docs/ox_lib/Interface/Client/textui.md | 21 --------------------- 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/docs/ox_lib/AddKeybind/Client.md b/docs/ox_lib/AddKeybind/Client.md index 446030b6..ae20ff8c 100644 --- a/docs/ox_lib/AddKeybind/Client.md +++ b/docs/ox_lib/AddKeybind/Client.md @@ -6,7 +6,7 @@ lib.addKeybind(data) * description: `string` * defaultKey?: `string` * Default: None - * keybind: `string` + * currentKey: `string` * disabled?: `boolean` * disable?: `function`(self: `table`, toggle: `boolean`) * onPressed?: `function`(self: `table`) @@ -18,10 +18,10 @@ local keybind = lib.addKeybind({ description = 'press F to pay respects', defaultKey = 'F', onPressed = function(self) - print(('pressed %s (%s)'):format(self.keybind, self.name)) + print(('pressed %s (%s)'):format(self.currentKey, self.name)) end, onReleased = function(self) - print(('released %s (%s)'):format(self.keybind, self.name)) + print(('released %s (%s)'):format(self.currentKey, self.name)) end, }) ``` diff --git a/docs/ox_lib/Interface/Client/textui.md b/docs/ox_lib/Interface/Client/textui.md index 5da2814b..5b66e57c 100644 --- a/docs/ox_lib/Interface/Client/textui.md +++ b/docs/ox_lib/Interface/Client/textui.md @@ -117,24 +117,3 @@ lib.hideTextUI() -### lib.isTextUIOpen -Returns if the TextUI window is open - - - - -```lua -local isOpen = lib.isTextUIOpen() -print(isOpen) -``` - - - -```ts -import lib from '@overextended/ox_lib/client' - -let isOpen = lib.isTextUIOpen() -console.log(isOpen) -``` - -