Skip to main content
Complete public, numbered, and private lobby configuration and API reference.
fnx-pvp-lobbies provides public, numbered, and private PVP lobbies with maps, loadouts, vehicles, respawning, permissions, stats, and leaderboards.

First installation

The resource creates its required database tables automatically. You do not need to import an SQL file.

First setup

Edit both public cfg files. Verify every ID reference: lobby weapon IDs must exist in ServerCfg.Weapons, map IDs in ServerCfg.Maps, and vehicle names must be valid GTA models.

Client configuration

Plugin

Commands

Each command has its own enabled and name. Commands with key mappings also have key and keyDescription.

Sections and actions

Runtime, death, respawn, and vehicles

Client hooks

Server configuration

Inventory and joining

Rewards

ServerCfg.Rewards controls item/account rewards. Rewards are given independently from lobby loadouts, so they still work when Inventory.keepInventory is true.

Logs

Each log category supports enabled, username, avatar, webhooks, and embed. webhooks is an array, so one category can send to multiple Discord webhooks. embed is a Lua function and can be fully customized per server.

Lobby runtime

Public lobby schema

Map schema

Weapon and component schema

Server commands

Server hooks

Shared files

Private shared files contain internal bridge/constants. There is no public shared cfg.

Theme system

Every theme key controls a separate CSS variable:

Developer info

Client exports

Server exports

Common issues

Lobby content is missing

IDs must match exactly across public lobby, map, and weapon tables.

Vehicle is blocked

Check allowed vehicles, excludedVehicles, and every true entry in excludedClasses.

Inventory restore fails

Check inventory mode and all weapon/ammo/component item names.

Some selected weapons are not given

The resource applies each selected weapon as one package containing the weapon, its ammunition, and selected components. If the complete package does not fit, only that weapon is skipped. The player remains in the lobby, receives every other package that fits, and sees one notification with the number of skipped weapons.

Players enter the wrong instance

Ensure all bucket bases/ranges are unique across server resources.

Text shows broken characters

Save the cfg as UTF-8; some current descriptions show a mis-decoded em dash (—).

Common folders