Skip to main content

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:

  • true if actionName is a string and actionFunc is a function
  • false if 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'
}
}