OverflowOverflow
Pause Menu

Configuration

First install, really important!

ox_lib is required and must be started up before of_pause in your server.cfg.

Mugshot

The mugshot feature requires the MugShotBase64 dependency to be enabled in configuration config.lua/{ mugshot }.

The configuration for of-pausemenu can be found inside the config.lua file. Below is a breakdown of each option available.

Grid Layout

Defines how widgets are arranged in the pause menu. Each set (a, b, c, d) must be rectangular and adjacent.

Example:

gridLayout = {
  { 'a', 'a', 'b', 'd' },
  { 'a', 'a', 'c', 'd' }
}
KeyDescription
aMap widget
bPlayers list
cPolice panel
dDiscord section

General Settings

OptionDescription
frameworkFramework to use. Supported: esx, qb, standalone.
localeLanguage used. Check of_pause/lang/*.lua to add or edit locales.
server_refreshInterval (ms) to refresh server data. Automatically updates when police status changes.

Police Settings

The way this system works is really simple. If current police (on duty) is equal or greater than minDuty, then the pausemenu will display (available). Otherwise, it'll display unavailable unless /forceStatusCommand true is executed, then TRUE (Available) will be forced and minDuty ignored.

OptionDescription
jobNameName of the police job. Default: police.
minDutyMinimum number of officers on duty to display police-related UI.
rankForCommandMinimum rank required to use the forcepolice command. Set nil to disable.
forceStatusCommandCommand to override minimum police requirement. Usage: /forcepolice true or /forcepolice false.

Frontend Settings

OptionDescription
url:shopURL used for shop link in the UI.
url:discordDiscord invite or community URL.
url:rulesLink to server rules page.
mugshotEnable mugshot as player profile picture (requires MugShotBase64).

Aliases

Maps internal framework names

_alias = {
  ['qb'] = 'qb-core',
  ['esx'] = 'es_extended',
}

Change ONLY if you are using any of these frameworks under a different name (Eg. renamed qb-core myserver-core). If you are using a standalone framework you will need to setup 'client/modules/bridge/standalone.lua' and 'client/modules/bridge/standalone.lua'


For any questions or issues, reach out on our Discord.

On this page