# Admin, Commands, and Leaderboards

## Player commands and inputs

### Games menu

`Config.ZombieGamesCommand` controls the global games menu command.

The stock command is usually `zombies`.

### Scoreboard

The in-game scoreboard key comes from `Config.Leaderboards.InGameScoreboard.DefaultKey`.

The stock key is usually `DELETE`.

Players can rebind it through FiveM key bindings.

### Mode abilities

Mode-specific abilities register as commands.

Players bind them through FiveM key bindings.

### Debug commands

When `Config.Debug` is on, extra test commands can appear.

Those should stay off on live servers.

## Admin

Admin access depends on `Config.AdminRole`.

Common admin commands:

* `zombify`
* `unzombify`
* `togglefreeroamzombies`
* `forcehorde`
* `forcesvz`
* `forcebr`
* the admin menu command from `Config.AdminMenuCommand`

Server-side helper functions mirror those features for scripted use.

## Leaderboards

Leaderboard data is stored in:

* `data/leaderboards.json`

The master switch and scoreboard behavior live under `Config.Leaderboards`.

Common settings include:

* enable toggle
* recent game limits
* top player limits
* webhook toggles
* category definitions

Common categories include:

* Battle Royale wins and kills
* Horde highest round and points
* Survivors vs Zombies survivor points and zombie kills

## Webhooks

Webhook URLs are configured in `server/server_edit.lua`.

Common webhook targets include:

* Survivors vs Zombies
* Battle Royale Z
* Zombie Horde

The reset command for stored leaderboard data comes from the leaderboard config too.

Use it carefully on live servers.
