From 4af91a9e92f52a3e7bd78d0f0f9554d53ec5761f Mon Sep 17 00:00:00 2001 From: Sam Shanks <68856260+SamShanks1@users.noreply.github.com> Date: Tue, 11 Oct 2022 12:49:34 +0100 Subject: [PATCH] feat(lib/context): onBack (#54) --- docs/ox_lib/Interface/Client/context.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/ox_lib/Interface/Client/context.md b/docs/ox_lib/Interface/Client/context.md index 72f3672d..a4303306 100644 --- a/docs/ox_lib/Interface/Client/context.md +++ b/docs/ox_lib/Interface/Client/context.md @@ -35,6 +35,8 @@ lib.registerContext(context) * If set to false the user won't be able to exit the menu without pressing one of the buttons. * onExit?: `function` * Function that will be ran when the user closes their context menu with ESC. +* onBack?: `function` + * Function that will be ran when the user presses the back button to return to a previous menu. * options: `table` (`object` or `array`) * item: `key` (`string`) or `table` (`object`) * title?: `string`