Config
The err_pausemenu config is controlled by a single Lua table returned from the resource config file. This structure defines the menu keybind, the action groups, the camera effect, and the patch notes card.
Example configuration
return {
-- Keybind for opening the radial menu
keyBind = 'ESCAPE',
camera = true, -- Enable or disable the camera effect when opening the pause menu
menu = {
{
{
label = 'Radar',
icon = 'fa-map',
action = {
type = 'clientEvent',
event = 'err_pausemenu:openRadar',
},
},
{
label = 'Store',
icon = 'fa-globe',
action = {
type = 'url',
event = 'https://err-scripts.xyz',
},
},
},
{
{
label = 'Settings',
icon = 'fa-gear',
action = {
type = 'clientEvent',
event = 'err_pausemenu:openSettings',
},
},
{
label = 'Keybinds',
icon = 'fa-keyboard',
action = {
type = 'clientEvent',
event = 'err_pausemenu:openKeybinds',
},
},
{
label = 'Discord',
icon = 'fa-brands fa-discord',
action = {
type = 'url',
event = 'https://discord.gg/yGUU59WjuM',
},
},
},
{
{
label = 'Close',
icon = 'fa-circle-xmark',
action = {
type = 'clientEvent',
event = 'err_pausemenu:close',
},
},
{
label = 'Disconnect',
icon = 'fa-power-off',
action = {
type = 'serverEvent',
event = 'err_pausemenu:quit',
},
},
},
},
patchNote = {
version = "1.0.0",
releaseDate = "SEPT 12, 2026",
patchTitle = "This week on the server",
backgroundImage = "https://media.discordapp.net/attachments/715247564466946098/1549114498164592852/image.png?ex=6aac27cd&is=6aaad64d&hm=be3106c65117ecfc3e47264c6083cc7a783483aa24c9119fc33c59dd7e34a00b&=&format=webp&quality=lossless&width=1563&height=873",
highlights = {
{
type = "add",
updates = {
{ text = "Initial release of the pause menu." },
},
},
{
type = "improved",
updates = {
{ text = "Improved menu transitions." },
{ text = "Reduced UI latency." },
},
},
{
type = "fixed",
updates = {
{ text = "Fixed animation flickering." },
{ text = "Fixed animation flickering." },
{ text = "Fixed animation flickering." },
{ text = "Corrected character positioning issues." },
},
},
},
},
}Settings breakdown
keyBind
- Type:
string - Default:
'ESCAPE' - Description: Key used to open the pause menu.
camera
- Type:
boolean - Default:
true - Description: Enables or disables the camera effect and opening animation when the pause menu is triggered.
menu
- Type:
table - Description: Defines the layout of the menu buttons. The menu is split into rows, and each row contains multiple action items.
Each menu item supports:
-
label- Display text shown on the button.
-
icon- FontAwesome icon class such as
fa-map,fa-gear, orfa-brands fa-discord.
- FontAwesome icon class such as
-
action- The button behavior when clicked.
action supports the following types:
-
clientEvent- Triggers a client-side event.
- Example:
err_pausemenu:openRadar
-
serverEvent- Triggers a server-side event.
- Example:
err_pausemenu:quit
-
url- Opens a browser link.
- Example:
https://err-scripts.xyz
-
export- Calls a client-side export function.
- Example:
nil-pausemenu.getPauseMenuState(format:resourceName.exportName)
patchNote
- Type:
table - Description: Defines the patch notes panel displayed in the pause menu.
Supported fields:
-
version- Version number string.
-
releaseDate- Release date string shown in the panel.
-
patchTitle- Header title for the patch notes section.
-
backgroundImage- Background image URL used in the patch note panel.
-
highlights- Array of update groups.
- Each highlight contains:
type-add,improved, orfixedupdates- list of objects withtextvalues