Agency Docs
QBESXStandalone

Agency-Vehiclekeys V2

Universal vehicle keys for FiveM on QBCore, Qbox, ESX or fully standalone.

v2.0.0Paid5 Pages

01Overview

Universal vehicle keys for FiveM on QBCore, Qbox, ESX or fully standalone. G locks and unlocks the nearest car you have a key for, with the key fob in the hand, a short horn beep and flashing lights, and U starts the engine. The key ring on F5 shows every key with the distance to the car, its doors and engine, and a remote for lock, trunk, engine and a panic alarm. Owners give saved or temporary keys to players nearby and take them back with one click, police, EMS and mechanics drive their job vehicles without a key, and a lockpick skill check with alarms, owner messages and police alerts makes break-ins real. Admins give keys, look up any plate and change the settings for the whole server from the same menu, in the new V2 design or the classic V1 look. The key events of Agency Garage, Agency Vehicleshop and qb-vehiclekeys are understood, and 25 languages are included.

02Features

Universal Keys for Every VehicleKey Ring with a Remote for Every CarLock, Engine, Trunk and Panic Alarm from AfarKey Fob Animation, Horn Beep and Flashing LightsShare Saved or Temporary KeysTake Keys Back with One ClickJob Keys by Job Grade and DutyLockpicking Skill CheckHotwiring from the Driver SeatCar Alarms, Owner Messages & Police DispatchAdmin Page in GameSettings for the Whole Server in the MenuNew V2 Design or the Classic V1 LookIndicators and Hazard Lights for EveryoneWorks with Agency Garage, Vehicleshop and qb-vehiclekeys EventsServer-Side Validationoxmysql or the Server's Key Value StoreQB / QBox / ESX / Standalone25 LanguagesV1 Keys Taken OverDebug Mode for Support

03Screenshots

+Good to know

Agency-Vehiclekeys V2 gives every player a key ring with a remote for each car. Keys can be shared and taken back, job vehicles open for the right job, and a locked car can be picked or hotwired with real consequences. The script runs on QBCore, Qbox, ESX or without any framework, and V2 is a free update for everyone who owns V1.

Keys in the World
G locks and unlocks the nearest vehicle you have a key for, up to 25 metres away. The key fob shows up in the hand, a short horn beep and flashing lights confirm it, and a small card tells you what happened. U starts and stops the engine in the driver seat, and the engine keeps running when you get out, if you want it to.
The Key Ring
F5 or /keys opens all your keys with search and filters. Every key shows the distance to the car, its doors and engine, and who else holds a key. The remote locks, unlocks, opens the trunk, starts the engine and sets off a panic alarm while the car is in reach, and a waypoint leads to it.
Four Kinds of Keys
Owner keys come from the owned vehicles of QBCore, Qbox or ESX, or on standalone servers from a garage or shop that calls SetOwner. Shared keys are saved and stay after a restart. Temporary keys last until the next restart or for a number of hours. Job keys open job vehicles for police, EMS and mechanics by job grade and duty.
Sharing Keys
An owner gives a saved or temporary key to a player within 5 metres, up to six keys per car. Handed out shows everyone with a key to the car, and one click takes a key back. Players who only hold a key can hand it on or give it back.
Lockpicking and Hotwiring
H at a locked car with a lockpick starts a skill check in three rounds: press in the marked zone. The advanced lockpick is easier and breaks less often. When the engine needs a key, H in the driver seat hotwires the car in four rounds and gives a temporary key. Emergency vehicles cannot be picked.
Alarms and the Police
A failed try may set off the car alarm and send a police alert through ps-dispatch, cd_dispatch, qs-dispatch, rcore_dispatch, core_dispatch, tk_dispatch, lb-tablet or a built-in alert with a map blip. The owner gets a message when someone breaks into his car.
Two Looks
The new V2 design follows Agency Housing in gold. The classic V1 look shows every message as a notification through Agency-Notify, your framework or the GTA feed, and the menu in the old Agency style. Admins switch the whole server in the settings of the key ring.
Admins in Game
The Admin tab gives any player a key, temporary, saved or as owner on standalone servers, looks up a plate with owner and key holders and takes keys back, and locks or unlocks the car in front of you. The Settings tab changes the look, range, engine rules, sharing, break-ins and the debug mode for the whole server.

?Frequently asked questions

Is V2 a free update?

Yes. Everyone who owns Agency-Vehiclekeys gets V2 in the Keymaster at no cost, the price stays the same.

Do I need a framework or a database?

No. Without a framework the script runs standalone, and without oxmysql the keys are saved in the server's key value store. With QBCore, Qbox or ESX the owned vehicles of the framework become owner keys by themselves.

Does it work with my garage and vehicle shop?

Agency Garage and Agency Vehicleshop work right away, and so do scripts that use the key events of qb-vehiclekeys. The car has to be next to the player or be his, so nobody can ask for the key of any car.

What happens to the keys from V1?

Keys handed out in V1 are taken over from the table simple_carkeys_shared on the first start. The old table stays untouched.

Why is the engine on U now?

V1 used M, which Agency Phone opens with. Set Config.Controls.engine = 'M' for the old key. Players can also change every key in the GTA settings under Key Bindings, FiveM.

Can I change the texts?

Yes. Config.Locale picks one of 25 languages, and Config.Text overrides any single text from locales/en.lua with your own wording.

Still stuck after this page? Our support team takes it from here.