License Plate System

License Plate System

€10.00

Add to Basket

Key Features

🔧 Removing License Plates

  • Players can remove license plates from valid vehicles using an ox_target interaction.
  • Requires 1× lockpick item, verified on both client & server.
  • When a plate is removed:
    • lockpick is consumed.
    • The original plate number is stored.
    • The player receives a spz item with metadata containing the removed plate (metadata.description = plate).

🔧 Re-attaching License Plates

  • The spz item is usable through ESX.
  • When used, the script applies the stored plate number to the nearest vehicle.
  • Important:
    If the player has multiple spz items, the script automatically uses the one in the lowest inventory slot (lowest slot number).
    This ensures consistent behavior and prevents accidental use of the wrong plate.

🚫 Automatic Filtering

The ox_target interaction automatically ignores:

  • Bicycles / BMX (class 13)
  • Boats (class 14)
  • Helicopters (class 15)
  • Planes (class 16)
  • Vehicles without a valid license plate

📦 Item-Based Logic

  • Fully integrated with ox_inventory (AddItem, RemoveItem, metadata).
  • No client-side faking — all critical checks happen server-side.
  • Safe from abuse through distance checks, item validation, and server authority.

🧩 No Config Needed

The system is completely self-contained.
There is no config.lua, no options, and no setup required.
Just drop the script in your server and it works immediately.