Configuration
Every setting in config.lua.
| Setting | What it does |
|---|---|
Config.framework | auto, qbx, qb, esx or standalone. |
Config.locale | Language file in locales/: en, sv, de, fr, es, pt, it, nl, pl, tr. Copy en.lua to add your own and add it to Config.languages. |
Config.followGameLanguage | A player whose game is in French, German, Italian, Spanish, Portuguese or Polish gets that language. |
Config.startTab | What ESC opens on, map or status. |
Config.look | Colours, corners (cut, round, square), cornerSize, panel and tabStyle (filled, line, outline). |
Config.legendGroups | Headings in the map legend, by blip number or name. |
Config.serverName | Shown in the corner and on the leave screen. |
Config.accent | The colour of the route, your arrow, the destination and the compass needle, as a hex like #ffb020. |
Config.uiScale | Size of the menu and the map controls, 0.6 to 1.2. |
Config.openControls | Keys that open the menu. 200 is ESC, 199 is P. |
Config.cityMap | Zoom range, camera tilt, blip size, opening height, snap radius and roof clearance. |
Config.cityMap.mapMode | 3d, or game: no 3D map, the menu opens over the blurred game and Map opens the game's own map. |
Config.cityMap.postals | Postal set: new, ocrp or off. |
Config.cityMap.realTime | true shows the real time and weather on the map. |
Config.cityMap.holdHour | The clock while the map is open when realTime is off. |
Config.cityMap.edgeArrows | Arrows at the edge of the map, the default for players. |
Config.cityMap.maxPoints | How many points of interest a player can mark. |
Config.cityMap.sight | enabled and distance for the sight limit. |
Config.cityMap.clearSky | Takes the haze and clouds away as the camera climbs. false keeps the normal sky. |
Config.feedback | Button sounds and small animations, the default for players. |
Config.customBlips | Your own blips. |
Config.hideHud | Hide your HUD while the menu is open. |
Config.status | Which jobs count as police, EMS and mechanic. |
Config.menu | The tabs in the dock, left to right. |
Config.discord, Config.rules | Invite and rules text. |
Config.socials | Icon buttons next to the server name. A click copies the link. |
Config.news | News from the file, used until an admin has saved news in /pmconfig. |
Config.restarts | Restart times in server time, like { "06:00", "18:00" }. Shows a countdown. |
Config.keybinds | The list on the Keys page. Empty hides the button. |
Config.showPlaytime, Config.showSession | The two clocks on the character card. |
Your own tabs
A tab runs a command or a client event. Add requires = 'resource_name' to show it only while that resource is started.
lua
Config.menu = {
{ action = 'map' },
{ label = 'Report', event = 'my_reports:open' },
{ label = 'Characters', command = 'charselect' },
{ action = 'leave' },
{ action = 'resume', label = 'close' },
}