⭐ Key Features
🔧 Removing License Plates
- Players can remove license plates from valid vehicles using an ox_target interaction.
-
Requires 1×
lockpickitem, verified on both client & server. - When a plate is removed:
- 1× lockpick is consumed.
- The original plate number is stored.
- The player receives a
spzitem with metadata containing the removed plate (metadata.description = plate).
🔧 Re-attaching License Plates
- The
spzitem is usable through ESX. - When used, the script applies the stored plate number to the nearest vehicle.
-
Important:
If the player has multiplespzitems, 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.