0Gravity
DISCORD
  • Introduction
  • FAQ
  • Summary
  • Developer Guide
  • Scripts
    • Fake Plates
    • PIN Code Minigame
  • Teleport Menu
  • 0Gravity - Weapon Lock | Free
Powered by GitBook
On this page
  • Overview
  • Features
  • Configuration
  • Usage
  • In-Game Interactions
  • Commands & Menus
  • Logging & Statistics
  1. Scripts

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.

PreviousDeveloper GuideNextPIN Code Minigame

Last updated 1 month ago