Skip to content

Configuration

Every option of Cuxial Pause Menu explained: server name, keys, shortcuts, rules, social networks and presence icons.

Everything you can adjust lives in shared/config.lua. Restart the resource after any change.

General ​

OptionTypeDefaultWhat it does
debugbooleanfalsePrints traces to the server console. Also enabled by setting the convar cuxial_pausemenu_debug to 1.

Interface · ui ​

OptionTypeDefaultWhat it does
accentstring (hex)configurableAccent colour of the interface. Also colours the job tag while the player is on duty.
particles.colorstring (hex)''Neutral colour of the particles and of the map presence icon. Empty = white.
particles.accentstring (hex)''Highlight colour of the particles and of the menu presence icon. Empty = the accent.

The logo shown in the header is web/dist/img/logo.webp. Replace the file, keeping the name, to use your own.

Server · server ​

OptionTypeDefaultWhat it does
namestring'My Server'Server name shown in the header. Change it to yours.
maxPlayersnumber0Slots shown next to the players online. 0 = uses sv_maxclients.

Keys · keys ​

OptionTypeDefaultWhat it does
menustring'ESCAPE'Default key that opens the menu.
mapstring'P'Default key that opens the GTA map directly. '' removes this key.

These are only defaults. FiveM remembers each player's bindings, and every player can change them in the GTA key settings.

Shortcuts · tiles ​

The large buttons of the left column, in the order they are listed.

FieldTypeWhat it does
idstringAction of the button. 'resume' = back to the game, 'nativeMap' = GTA map, 'nativeSettings' = GTA settings, 'quit' = disconnect or close the game.
imagestringBackground picture, a file inside web/dist/img/tiles/. Optional.

Remove a line to hide that button. The texts come from the locale files: UI_TILE_<ID> and UI_TILE_<ID>_HINT.

shared/config.lua
lua
tiles = {
    { id = 'resume', image = 'resume.webp' },
    { id = 'nativeMap', image = 'map.webp' },
    { id = 'quit', image = 'exit.webp' },
},

Rules · rules ​

A list of texts, one per rule, shown in the order written. The ones shipped are examples: replace them with yours. With an empty list the menu says the server has not published any rules.

shared/config.lua
lua
rules = {
    'Treat other players with respect.',
    'No cheats or external software.',
},

Community · socials ​

The social networks listed under the rules, each with its icon, name and handle. The ones shipped are examples. An empty list hides the section.

FieldTypeWhat it does
idstringPicks the icon: discord, instagram, tiktok, youtube, twitter, x, telegram, web or website. Any other value gets a generic link icon.
labelstringName of the network.
handlestringAddress or user name shown below. Optional.
colorstring (hex)Colour of the icon. Optional; the accent if omitted.
shared/config.lua
lua
socials = {
    { id = 'discord', label = 'Discord', handle = 'discord.gg/yourserver', color = '#5865F2' },
    { id = 'web', label = 'Web', handle = 'yourserver.com', color = '#ffffff' },
},

Extra currency · coins ​

OptionTypeDefaultWhat it does
enabledbooleanfalsetrue shows a third balance next to cash and bank. false hides it; the character card then shows the played time, if your framework stores a playtime value for the player.
accountstring'coins'Money account read from your framework.

Set enabled = true only when your framework has that account. If the account does not exist, the balance shows 0.

Services on duty · duty ​

OptionTypeDefaultWhat it does
policestring'leo'Job counted as police on duty.
medicalstring'ems'Job counted as medics on duty.

On QBox and QBCore the value is compared with the job type and with the job name, so 'leo' counts every police job.

On ESX only the job name is compared. Use your job names, for example police = 'police' and medical = 'ambulance'. The gang tag is shown on QBox and QBCore.

Clock · clock ​

OptionTypeDefaultWhat it does
refreshMsnumber20000Milliseconds between refreshes of the time, the weather and the duty counters while the menu is open. Minimum 1000.

Presence icons · aura ​

Icons that orbit above the head of a player who has the menu, the settings or the map open, so others know that player is not looking at the game.

OptionTypeDefaultWhat it does
enabledbooleantruetrue shows the icons. false turns the whole feature off.
distancenumber22.0Metres beyond which the icons are not drawn.
requireLosbooleantruetrue draws them only with a clear line of sight. false draws them through walls.
showSelfbooleantruetrue shows your own icons too. They are hidden in first person.
headOffsetnumber0.42Height above the head, in metres.
clearOnDeathbooleantruetrue shows no icons while the player is dead or downed. false keeps them.
ticknumber0Milliseconds between position updates while icons are visible. 0 = every frame. From 0 to 250.
checkMsnumber200Milliseconds between checks of who is nearby and visible. From 50 to 1000.
rescanMsnumber3000Milliseconds between searches for players who arrive with the menu already open. 0 disables the search; otherwise minimum 500.
heartbeatMsnumber20000Milliseconds between the signals that keep a player's state alive. Minimum 2000.
maxSecondsnumber90Seconds after which the server clears a state that stopped sending signals. Minimum 5, and never less than twice heartbeatMs.
healMsnumber1000Milliseconds the menu waits before closing itself when it loses focus without being closed. Minimum 250.
rate.limitnumber10State changes accepted per player in each window.
rate.windowMsnumber10000Length of that window, in milliseconds.

GTA menu · native ​

Timings used to keep the GTA pause screen hidden and to open its map and settings. The defaults suit most servers.

OptionTypeDefaultWhat it does
suppressFramesnumber20Frames the GTA pause screen is blocked after pressing the menu key.
mapKeyBlockFramesnumber6Frames it is blocked after releasing the map key, before the map opens.
mapScreennumber0Screen of the GTA menu opened by the map shortcut. 0 = map.
mapOpenDelayMsnumber100Milliseconds waited before entering the map.
settingsOpenDelayMsnumber500Milliseconds waited after opening the settings.
watchdogMsnumber250Milliseconds between checks for a GTA pause screen opened by something else (a controller, another resource). When found, it is closed and this menu opens. 0 disables the check.

GTA colours · hudColours ​

Replaces GTA interface colours so the map and the settings match the menu. Each entry is [index] = { red, green, blue, alpha }, with values from 0 to 255; alpha is optional. The index is the GTA HUD colour number.

shared/config.lua
lua
hudColours = {
    [116] = { 255, 255, 255, 255 },
},

Leave the table empty to keep the original GTA colours.

© Cuxial