Exports
These exports were created to manually control the Pause Menu behavior in specific cases. While the Pause Menu automatically detects active UIs and prevents interference when pressing ESC, some scripts donβt use FiveMβs native NUI system, making automatic detection impossible. These exports allow you to handle those cases manually.
disableMenu
Disables the Pause Menu. Use this when your custom UI is active.
enableMenu
Re-enables the Pause Menu after it was disabled.
setMenuState(state)
Manually sets the Pause Menu state (true
to enable, false
to disable).
getMenuState
Returns the current state of the Pause Menu (true
or false
).
Use these exports in scripts with custom UIs that donβt rely on NUI to ensure seamless integration with the Pause Menu.
Last updated