diff --git a/docs/ox_lib/Client/Interface/context.md b/docs/ox_lib/Client/Interface/context.md index b7babd1d..9b811035 100644 --- a/docs/ox_lib/Client/Interface/context.md +++ b/docs/ox_lib/Client/Interface/context.md @@ -134,4 +134,14 @@ As of the time writing this the buttons are sorted **alphabetically**. ![menu_example](https://i.imgur.com/aJu92dv.png) ![metadata](https://i.imgur.com/kFGSlBF.png) -![event_menu](https://i.imgur.com/r0Ln4VP.png) \ No newline at end of file +![event_menu](https://i.imgur.com/r0Ln4VP.png) + +### lib.getOpenContextMenu + +Returns the id of the currently open context menu. + +If not context menu is open returns `nil`. + +```lua +lib.getOpenContextMenu() +``` \ No newline at end of file diff --git a/docs/ox_lib/Client/Interface/input.md b/docs/ox_lib/Client/Interface/input.md index 50b07b45..0992cfe3 100644 --- a/docs/ox_lib/Client/Interface/input.md +++ b/docs/ox_lib/Client/Interface/input.md @@ -69,15 +69,6 @@ end -:::danger - -Everything under this advanced exampled requires ox_lib version at least 2.3.0 and -as of the time of writing this version **hasn't** been pushed yet. - -Optionally you can download the source code and build the UI yourself if you don't -want to wait for the release. -::: - ```lua local input = lib.inputDialog('Police locker', { { type = "input", label = "Locker number" }, diff --git a/docs/ox_lib/Client/Interface/notify.md b/docs/ox_lib/Client/Interface/notify.md index d8afdf98..ac9bd12c 100644 --- a/docs/ox_lib/Client/Interface/notify.md +++ b/docs/ox_lib/Client/Interface/notify.md @@ -53,14 +53,14 @@ lib.notify({ description = 'Notification description', position = 'top', style = { - backgroundColor = 'red', - color = 'blue' + backgroundColor = '#141517', + color = '#909296' }, - icon = 'bed', - iconColor = 'purple' + icon = 'ban', + iconColor = '#C53030' }) ``` -![custom_notification](https://i.imgur.com/3gexwWu.png) +![custom_notification](https://i.imgur.com/0EK5APp.png) diff --git a/docs/ox_lib/Client/Interface/textui.md b/docs/ox_lib/Client/Interface/textui.md index e0f310bb..5d39b7ef 100644 --- a/docs/ox_lib/Client/Interface/textui.md +++ b/docs/ox_lib/Client/Interface/textui.md @@ -22,14 +22,13 @@ lib.showTextUI(text, options) **Example:** - + ```lua -lib.showTextUI('[E] - Fuel vehicle', { - position = "top-center", - icon = "gas-pump", -}) +lib.showTextUI('[E] - Fuel vehicle') ``` + +![](https://i.imgur.com/3ptQyAq.png) @@ -37,14 +36,15 @@ lib.showTextUI('[E] - Fuel vehicle', { lib.showTextUI('[E] - Pick apple', { position = "top-center", icon = 'hand', - iconColor = "red", style = { borderRadius = 0, - backgroundColor = 'blue', - color = 'red' + backgroundColor = '#48BB78', + color = 'white' } }) ``` + +![](https://i.imgur.com/gNDwPBN.png)