# nova\_admin

NOVA Framework admin panel. Provides a full-featured NUI-based administration interface for server management and player moderation.

## Features

* **Player Management** — Teleport, bring, kick, ban/unban, spectate, kill, heal, set armor
* **Vehicle Management** — Spawn, add to garage, remove, repair, tune, clear all vehicles
* **Inventory Management** — Give/remove items to players
* **Economy** — Give money (cash, bank, black\_money)
* **Property** — Give/remove properties
* **Salary Management** — Add, remove, set salaries by group
* **Server Announce** — Broadcast messages to all players
* **Quick Commands** — Configurable command panel in the UI
* **Discord Logs** — Optional webhook logging for admin actions

## Configuration

Edit `config.lua`:

```lua
Config.Command = 'admin'            -- Command to open admin panel
Config.CommandKey = 'F7'            -- Keybind to open
Config.MaxHealth = 200
Config.DeadHealth = 0

Config.StaffGroups = {
    'admin', 'superadmin', 'mod'
}

Config.Logs = {
    Enabled = true,
    Webhook = 'https://discord.com/api/webhooks/...'
}
```

### Staff Groups

Only players with a group listed in `Config.StaffGroups` can access the admin panel. Groups are checked via `nova_core` permissions.

## Commands

| Command          | Description          |
| ---------------- | -------------------- |
| `/admin` or `F7` | Open the admin panel |

## Dependencies

* **nova\_core** — Player data, permissions, money
* **nova\_inventory** — Item management
* **oxmysql** — Database operations

## Notes

* The admin panel uses a modern dark-themed NUI
* All actions are logged to console and optionally to Discord
* Ban data is stored in the database
* Salary management affects job paycheck amounts

## Security

* All actions are validated server-side with permission checks
* Event names and internal implementation details are not disclosed in this documentation for security purposes
* Unauthorized access attempts are logged
