From 5332f5e4519cf64d38ff364f8e4d6f2042bdd2cb Mon Sep 17 00:00:00 2001 From: Matin Date: Fri, 12 Dec 2025 15:04:05 +0330 Subject: [PATCH] feat(ox_lib) ContextMenu positions --- pages/ox_lib/Modules/Interface/Client/context.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/ox_lib/Modules/Interface/Client/context.mdx b/pages/ox_lib/Modules/Interface/Client/context.mdx index 67fce4aaa..d15bfff42 100644 --- a/pages/ox_lib/Modules/Interface/Client/context.mdx +++ b/pages/ox_lib/Modules/Interface/Client/context.mdx @@ -31,6 +31,8 @@ Used for registering a context menu. - Unique menu identifier, will be used to open the menu. - title: `string` - Title display in the menu; has markdown support. +- position?: `'top-left'` or `'top-right'` or `'bottom-left'` or `'bottom-right'` + - Default: `'top-right'` - menu?: `string` - Menu identifier - if defined there will be a back arrow next to the menu title that will take you to the menu you defined. - canClose: `boolean` @@ -171,6 +173,7 @@ First we register the menu with our specified options then we call the show func lib.registerContext({ id = 'some_menu', title = 'Some context menu', + position = 'top-right', options = { { title = 'Empty button', @@ -220,6 +223,7 @@ First we register the menu with our specified options then we call the show func lib.registerContext({ id: 'some_menu', title: 'Some context menu', + position: 'top-right', options: [ { title: 'Empty button',