> For the complete documentation index, see [llms.txt](https://docs.menanak47.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.menanak47.com/multi-framework/ak47_vehiclekeys.md).

# ak47\_vehiclekeys

{% embed url="<https://youtu.be/AaUV6wrqFqs?si=NpZJyw0MxyWj3Z7D>" %}

**The ultimate vehicle keys and security system for FiveM servers.** This script completely revamps vehicle ownership and security with a sleek, interactive key fob UI, dual physical & virtual keys, Locksmith services, realistic carjacking, lockpicking, hotwiring, and autonomous "Drive To Me" vehicle summoning. Powered by `ak47_lib`, it features multi-framework support, seamless 100% drop-in compatibility, and comprehensive police dispatch integration.

***

### 🔥 Key Features

Designed to improve roleplay immersion, vehicle management, and server security:

#### 🔑 Dual Key System & Modern Key Fob UI

* **Interactive Key Fob:** Sleek mobile-style Key Fob NUI allowing players to remotely lock/unlock doors, toggle the engine, control individual doors (front, rear, hood, trunk), roll windows up/down, and toggle headlights.
* **Autonomous "Drive To Me":** Summon your parked or owned car directly to your location with intelligent NPC navigation (fully integrates with `ak47_garage` real parking).
* **Physical & Virtual Keys:** Support for both tradable physical inventory key items (`carkey`) and digital virtual keys stored on the player character with `/givekey` transfer.

#### 🛠️ Locksmith & Lock Rekeying

* **Key Duplication:** Visit the interactive Locksmith NPC to duplicate physical vehicle keys for friends or associates.
* **Change Vehicle Locks:** Change your vehicle's lock combination to instantly invalidate all previously copied or stolen keys.

#### 🚨 Carjacking, Lockpicking & Hotwiring

* **Armed NPC Carjacking:** Seize vehicles from NPC drivers at gunpoint (includes distance validation and melee/unarmed weapon blacklists).
* **Lockpicking System:** Interactive Lib47 tension minigame to pick vehicle door locks with customizable alarm chances, item degradation, and failure mechanics.
* **Glovebox Search & Hotwiring:** Search inside vehicles for misplaced keys or hotwire the ignition with configurable timers, alarm probabilities, and success rates.

#### 🚓 Emergency Job Access & Dispatch Alerts

* **Whitelisted Job Vehicles:** Police, EMS, mechanics, and other whitelisted services can access their job vehicles seamlessly without manual key sharing.
* **12+ Dispatch Integrations:** Automatic support and alerts for Quasar, ps-dispatch, cd\_dispatch, core\_dispatch, rcore\_dispatch, aty\_dispatch, origen\_police, tgiann-police, tk-dispatch, waypoint, lb-phone, and native GTA alerts.

#### 🛠️ Technical Excellence & Drop-In Replacement

* **100% Drop-In Compatibility:** Direct drop-in replacement for `qb-vehiclekeys`, `ak47_qb_vehiclekeys`, `wasabi_carlock`, and `qs-vehiclekeys` with zero breaking changes.
* **Multi-Framework & Inventory:** Works flawlessly on ESX, QBCore, and Qbox, supporting `ox_inventory`, `qb-inventory`, `qs-inventory`, `esx_inventory`, `tgiann-inventory`, `codem-inventory`, and `origen_inventory`.
* **Engine Persistence & Security:** Keep vehicle engines running after exiting (`Config.PreventAutoEngineOff`), auto-turn off engines upon locking, and strict server-side trigger verification.

***

### 💻 Framework:

* ESX, QB, QBX

***

### ⚙️ Dependencies:

* ak47\_lib: <https://github.com/MenanAk47/ak47_lib/releases/latest>

***

### ⚙️ How To Install:

* Download ak47\_vehiclekeys from your cfx portal.
* Add the script into your resources folder.
* Add items based on your framework instruction.
* Add item images into inventory.
* Start the script in your server.cfg below framework files.
* Make sure you have all dependencies.
* Restart the server.

***

### 🔗 Links & Support:

* **🛒 Buy Now (Tebex):** <https://menanak47.tebex.io/package/6204330>
* **💬 Discord Support:** <https://discord.gg/menanak47>

***

### 📝 Note:

* We don't support custom framework. Make sure you are using official framework update.
* Renaming the script is not allowed. It may break the functionalities.
* Don't upload the script with FileZilla, Use Winscp if you are using FTP for file uploading
