From dcad0b26ec01da0dad2c7f31a0b88ab94ffdeed5 Mon Sep 17 00:00:00 2001 From: URRP XC <122388423+XCal-Dev@users.noreply.github.com> Date: Fri, 10 Jul 2026 02:32:04 -0400 Subject: [PATCH 1/2] feat(radial): add lib.showRadialMenu Docs Updated code examples for showing a specific radial menu. Related pull request: https://github.com/overextended/ox_lib/pull/812 Signed-off-by: URRP XC <122388423+XCal-Dev@users.noreply.github.com> --- .../docs/ox_lib/Interface/Client/radial.mdx | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/content/docs/ox_lib/Interface/Client/radial.mdx b/content/docs/ox_lib/Interface/Client/radial.mdx index ca457e03f..a2fec42c5 100644 --- a/content/docs/ox_lib/Interface/Client/radial.mdx +++ b/content/docs/ox_lib/Interface/Client/radial.mdx @@ -120,6 +120,29 @@ Registers a radial sub menu with predefined options. - onSelect?: `function(currentMenu: string | nil, itemIndex: number)` | `string` - Function that's ran when a user clicks the item. +## lib.showRadialMenu + +Opens a registered radial menu as the root radial menu. + + + + ```lua + lib.showRadialMenu(id) + ``` + + + ```ts + import lib from '@overextended/ox_lib/client'; + + lib.showRadialMenu(id); + ``` + + + + +- id: string + - Unique menu id from registered radial menus. + ## lib.hideRadial Hides the radial menu if one is open. @@ -268,6 +291,15 @@ Here's a use case example with some global options and an option utilising the l function point:onExit() lib.removeRadialItem('garage_access') end + + lib.addKeybind({ + name = 'urrp_radialmenu_config_demo', + description = 'Open Police menu', + defaultKey = 'F6', + onPressed = function() + lib.showRadialMenu('police_menu') + end, + }) ``` From 0e75b05bd628e43fcf23d65c5a40c61001028ef8 Mon Sep 17 00:00:00 2001 From: URRP XC <122388423+XCal-Dev@users.noreply.github.com> Date: Fri, 10 Jul 2026 18:49:55 -0400 Subject: [PATCH 2/2] removed example per review Signed-off-by: URRP XC <122388423+XCal-Dev@users.noreply.github.com> --- content/docs/ox_lib/Interface/Client/radial.mdx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/content/docs/ox_lib/Interface/Client/radial.mdx b/content/docs/ox_lib/Interface/Client/radial.mdx index a2fec42c5..95f8c0f52 100644 --- a/content/docs/ox_lib/Interface/Client/radial.mdx +++ b/content/docs/ox_lib/Interface/Client/radial.mdx @@ -291,15 +291,6 @@ Here's a use case example with some global options and an option utilising the l function point:onExit() lib.removeRadialItem('garage_access') end - - lib.addKeybind({ - name = 'urrp_radialmenu_config_demo', - description = 'Open Police menu', - defaultKey = 'F6', - onPressed = function() - lib.showRadialMenu('police_menu') - end, - }) ```