Exports
This section is aimed at developers. Basic scripting knowledge will help you get the most out of it.
Pause Menu Exports
These client-side exports let you disable or re-enable the pause menu from any other resource. Useful during cutscenes, minigames, or custom UIs where the pause menu should stay closed.
Call them like this:
exports["crm-pausemenu"]:functionName()disablePause
Disables the pause menu so players cannot open it.
exports["crm-pausemenu"]:disablePause()Example
exports["crm-pausemenu"]:disablePause()enablePause
Re-enables the pause menu after it was disabled.
exports["crm-pausemenu"]:enablePause()Example
exports["crm-pausemenu"]:enablePause()isPauseDisabled
Returns whether the pause menu is currently disabled.
local crm_disabled = exports["crm-pausemenu"]:isPauseDisabled()Returns
- (boolean) –
trueif the pause menu is disabled,falseotherwise.
Example
if exports["crm-pausemenu"]:isPauseDisabled() then
print("Pause menu is currently disabled.")
end