Exports
Client exportsβ
RegisterMenuActionβ
Registers a custom action handler that can be referenced by Config.MenuOptions.
local registered = exports.wasabi_pausemenu:RegisterMenuAction('OPEN_STORE', function()
-- custom action here
end)
Returns:
trueifactionNameis a string andactionFuncis a functionfalseif the arguments are invalid
After registering the action, add an option in config/shared/config.lua:
Config.MenuOptions = {
{
icon = 'star',
label = 'OPEN STORE',
action = 'OPEN_STORE',
color = '#41C4C3'
}
}