# Fake Plates

## Overview

The **Fake Plates** is part of the ZeroGravity suite and offers a set of services related to vehicle plate management. It enables players to:

* **Hide plates:** Temporarily remove a vehicle's plate.
* **Modify plates:** Change the plate number for a set fee.
* **Special Missions:** Engage in missions related to plate management (e.g., delivering parts or solving puzzles).

The module integrates with ESX and includes a comprehensive logging system using Discord webhooks.

## Features

* **Service Options:**
  * *Hide Plate*: Hide a vehicle's plate for a defined duration.
  * *Modify Plate*: Change the vehicle's plate number.
  * *Special Missions*: Participate in additional tasks such as delivery missions or puzzles.
* **Customizable Pricing:** Configure service prices in `config.lua`.
* **Cooldown Management:** Prevents abuse by setting a cooldown time between services.
* **NPC Integration:** Spawn NPCs that offer these services via an interactive menu.
* **Discord Logging:** Logs transactions and mission outcomes to a Discord channel for administrative tracking.

## Configuration

The module’s behavior is controlled via `config.lua`. Key configuration options include:

* **Service Prices:**
  * `PlateHidePrice`: Price to hide the plate.
  * `PlateModifyPrice`: Price to modify the plate.
  * `PlateRepairPrice`: Price to repair (if applicable).
* **Time Settings:**
  * `CooldownTime`: Cooldown period between uses.
  * `HideDuration`: Duration for which the plate remains hidden.
  * `ProgressBarTime`: Duration for progress bar animations.
* **Progress Bar Options:** Enable custom progress bars and set display options.
* **NPC Settings:** Define NPC positions, models, and the services they offer.
* **Discord Logging:** Set the `DiscordWebhook` URL to enable logging.

Refer to the comments in `config.lua` for more details on each configuration option.

## Usage

### In-Game Interactions

* **Accessing Services:**
  * Approach an NPC offering Fake Plates services.
  * Open the interaction menu and choose the desired service (hide, modify, or mission).
* **Vehicle Selection:**
  * When prompted, select a nearby vehicle for the service.
* **Service Execution:**
  * A progress bar indicates the service processing time.
  * Notifications inform the player of the outcome.

### Commands & Menus

* **plateStats Command:**
  * Admins can use `/plateStats` to view statistics for services rendered (e.g., number of hides, modifications, missions).

## Logging & Statistics

All significant events are logged:

* **Successful/Failed Service Transactions:** Logged with details including player ID, service type, and vehicle plate.
* **Special Missions:** Mission outcomes are logged, with success or failure noted.
* **Discord Webhook:** All logs are sent to the configured Discord webhook for real-time monitoring.

For further details on logging, see the inline comments in `server.lua`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://0grav1ty.gitbook.io/zerogravity/scripts/fake-plates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
