Skip to content

allow keybinds while pause menu is active#781

Merged
thelindat merged 2 commits into
overextended:mainfrom
Mesrine67:patch-1
May 27, 2026
Merged

allow keybinds while pause menu is active#781
thelindat merged 2 commits into
overextended:mainfrom
Mesrine67:patch-1

Conversation

@Mesrine67
Copy link
Copy Markdown
Contributor

Adds an optional allowInPauseMenu flag to lib.addKeybind.

By default, keybinds keep the existing behavior and are ignored while IsPauseMenuActive() is true. When allowInPauseMenu is set to true, the keybind can still trigger while the pause menu/frontend is active.

This is useful for resources that use frontend pause menu rendering, such as ped previews, while still needing their mapped keybinds to work.

Adds an optional `allowInPauseMenu` flag to `lib.addKeybind`.

By default, keybinds keep the existing behavior and are ignored while `IsPauseMenuActive()` is true. When `allowInPauseMenu` is set to true, the keybind can still trigger while the pause menu/frontend is active.

This is useful for resources that use frontend pause menu rendering, such as ped previews, while still needing their mapped keybinds to work.

Signed-off-by: PaPi <89279156+Mesrine67@users.noreply.github.com>
@thelindat
Copy link
Copy Markdown
Member

This requires accompanying changes in the ts package and docs.

Mesrine67 added a commit to Mesrine67/overextended.github.io that referenced this pull request May 25, 2026
Added 'allowInPauseMenu' option to keybind configuration. 

overextended/ox_lib#781

Signed-off-by: PaPi <89279156+Mesrine67@users.noreply.github.com>
@Mesrine67
Copy link
Copy Markdown
Contributor Author

@thelindat thelindat merged commit 9552f7f into overextended:main May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants