diff --git a/pages/ox_lib/Modules/Interface/Client/radial.mdx b/pages/ox_lib/Modules/Interface/Client/radial.mdx index 21d10db5d..7f80f89d0 100644 --- a/pages/ox_lib/Modules/Interface/Client/radial.mdx +++ b/pages/ox_lib/Modules/Interface/Client/radial.mdx @@ -67,6 +67,64 @@ Id of an item to be removed from the global menu. - id: `string` +## lib.addRadialSubItem + +Add an item or array of items to a specific radial sub menu. + + + + ```lua + lib.addRadialSubItem(parentMenuId, items) + ``` + + + ```ts + import lib from '@overextended/ox_lib/client'; + + lib.addRadialSubItem(parentMenuId, items); + ``` + + + +- parentMenuId: `string` +- items: `table` (`object` or `array`) + - id: `string` + - Id that is used for removing options. + - icon: `string` + - Either a font awesome or a custom URI.1 + - iconWidth?: `number` + - iconHeight?: `number` + - In the case of a custom URI, adjust the size of the icon. + - label: `string` + - Label uses ` \n` to insert a newline + - menu?: `string` + - Id of a menu to open. + - onSelect: `function(currentMenu: string | nil, itemIndex: number)` | `string` + - Function that's ran when a user clicks the item. + - keepOpen?: `boolean` + +## lib.removeRadialSubItem + +Remove an item from a specific radial sub menu. + + + + ```lua + lib.removeRadialSubItem(parentMenuId, item) + ``` + + + ```ts + import lib from '@overextended/ox_lib/client'; + + lib.removeRadialSubItem(parentMenuId, item); + ``` + + + +- parentMenuId: `string` +- id: `string` + ## lib.clearRadialItems Removes all items from the radial menu.