πŸ”‘ | Vehicle Keys

An extremely optimized and lightweight vehicle keys system with realistic lock, ignition, carjacking, and lockpicking mechanics for your server. Dare to be different!


:popcorn: Showcase:

[Gameplay Preview]

Images



:sparkles: Vehicle Keys Features:

  • Extremely optimized (0.00ms on idle).
  • Fully compatible with qb-vehiclekeys & qbx_vehiclekeys.
  • Keyring support for carrying multiple keys.
  • Realistic lock/unlock with custom sounds and light effects.
  • Manual engine start/stop with fuel check.
  • Hotwire minigame for vehicles without keys.
  • Lockpick minigame with configurable break chance.
  • Carjack NPCs at gunpoint with reactive AI (flee, surrender, resist).
  • Weapon blacklist for carjacking.
  • Locksmith NPCs to duplicate keys for a price.
  • Per-vehicle configuration (class or model based).
  • Admin command to give keys.
  • Full server-side validation & exports for integrations.
  • +200 vehicles with different animations for turning the engine on/off
  • Multi-framework support: ESX, QBCore, QBX, or custom.
  • Multi-language locales included.
  • Requires: ox_lib, ox_inventory.

[DISCORD]

DownloadHere

Code is accessible Partial
Subscription-based No
Lines (approximately) ~1200
Requirements ox_lib, ox_inventory
Support Yes
5 Likes

:key: VEHICLE KEYS UPDATE 1.0.1

  • Corrected the docs.
  • Added the function OnKeyCopied(success, plate) to client > utils.lua.
  • Added a sound when the key is duplicated at the locksmith.
  • The container for the keyring item will now be created automatically.

Modified files:

  • client :file_folder: / locksmith.lua
  • client :file_folder: / utils.lua
  • server :file_folder: / All
  • fxmanifest.lua
1 Like

:key: VEHICLE KEYS UPDATE 1.0.2

  • Added the configurable option to display the vehicle name in the vehicle key description.

Modified files:

  • client :file_folder: / main.lua
  • client :file_folder: / utils.lua
  • config :file_folder: / main.lua
  • server :file_folder: / utils.lua
  • locales :file_folder: / All
  • fxmanifest.lua
1 Like

:key: VEHICLE KEYS UPDATE 1.0.3

  • Slightly optimized a function in the main code.
  • Added to utils.lua: OnPedDraggedOut(driverPed, vehicle).
  • Added to utils.lua: OnCarjackStart(driverPed, vehicle).
  • Added to utils.lua: OnCarjackEnd(driverPed, vehicle, success).

Modified files:

  • client :file_folder: / main.lua
  • client :file_folder: / utils.lua
  • client :file_folder: / crimes.lua
  • config :file_folder: / main.lua
  • fxmanifest.lua
1 Like

:key: VEHICLE KEYS UPDATE 1.0.4

  • Added the ability to change the Hotwire key to the configuration.
  • Added to utils.lua: IsTextUIOpen().
  • Added to utils.lua: ShowTextUI(text).
  • Added to utils.lua: HideTextUI().

Modified files:

  • client :file_folder: / main.lua
  • client :file_folder: / utils.lua
  • client :file_folder: / locksmith.lua
  • config :file_folder: / main.lua
  • fxmanifest.lua
1 Like

:key: VEHICLE KEYS UPDATE 1.0.5

  • Removed some unused variables.
  • Fixed some notifications that were not displaying correctly.
  • Fixed CanLockWithWeapon, which was doing the opposite of what was configured.
  • Adjusted the code to use use_experimental_fxv2_oal (Greater efficiency in native code).
  • Improved checks for exiting the vehicle while the engine is starting/stopping.
  • Improved the /Givekey command.
  • Added lods to the locksmith NPC.
  • Added attributes to the locksmith NPC to prevent it from reacting to anything.

Modified files:

  • client :file_folder: / All
  • server :file_folder: / main.lua
  • config :file_folder: / main.lua
  • fxmanifest.lua
1 Like

:key: VEHICLE KEYS UPDATE 1.0.6

  • Fixed the engine start/stop animation that kept playing outside the vehicle if triggered right as you were exiting it.
  • Added different corresponding animations for 92 vehicles when turning the engine off/on.
  • Added the ability to modify the vehicle start/stop animation from the configuration.
  • Improved the checks for notification when starting the engine.
  • Ensured the use of certain flags in cases where the player’s hash changes.
  • Checks when trying to board a vehicle have been further optimized.
  • Slightly modified the names of some functions for better readability.

Modified files:

  • client :file_folder: / main.lua
  • client :file_folder: / crimes.lua
  • config :file_folder: / main.lua
  • fxmanifest.lua

1 Like

:key: VEHICLE KEYS UPDATE 1.0.7

  • Further reorganized the code to maximize performance and improve efficiency.
  • Reduced the vehicle shutdown time by 100ticks.
  • Further optimized the loop that detects when you try to enter a vehicle. Resmon is now 0.00ms and 0.00% on idle.
  • Manual vehicle ignition/shutdown will now be canceled if the player moves seats.
  • The player can no longer hotwire a vehicle while exiting or changing seats.
  • Fixed the error that appeared when using the lockpick without being near a vehicle.
  • Fixed the issue where the lockpick would sometimes not be properly disposed of if broken.
  • Changed the default lockpick breakage chance from 25% to 28%.
  • Fixed the slight delay between lockpick disposal and sound playback.

Modified files:

  • client :file_folder: / main.lua
  • client :file_folder: / crimes.lua
  • server :file_folder: / All
  • config :file_folder: / main.lua
  • fxmanifest.lua
1 Like

:key: VEHICLE KEYS UPDATE 1.0.8

  • Added 100 new engine start/stop animations for a wide variety of vehicles (cars, boats, planes, and helicopters).
  • Slightly reorganized the main server code.

Modified files:

  • server :file_folder: / main.lua
  • config :file_folder: / main.lua
  • fxmanifest.lua


1 Like

:key: VEHICLE KEYS UPDATE 1.0.9

  • Added custom engine start/stop animations for 35 additional vehicles.
  • Fixed the /givekey command.
  • Fixed some server-side notifications.
  • Added the Notify function to the server > utils.lua.

Modified files:

  • locale :file_folder: / All
  • server :file_folder: / All
  • config :file_folder: / main.lua
  • fxmanifest.lua
1 Like

:key: VEHICLE KEYS UPDATE 1.1.0

  • Added custom engine start/stop animations for 96 additional vehicles.
  • Changed animations assigned to 135 vehicles to a more precise and improved version.

Modified files:

  • config :file_folder: / main.lua
  • fxmanifest.lua
1 Like

Amazing and well optimized resource!

2 Likes

clean one

2 Likes

nice script great work

2 Likes

:key: VEHICLE KEYS UPDATE 1.1.1

  • Slightly optimized the vehicle theft code.
  • Fixed the maximum distance at which thefts would be canceled if they didn’t use the configurable distance.
  • Added the ability to configure the cooldown time for vehicle theft.
  • Added compatibility with weapons from the Atenea Store.
  • Changed the vehicle lockpicking animation.
  • Added a visible lockpick model when the player starts lockpicking.
  • Changed animations assigned to 2 vehicles to a more precise and improved version.

Modified files:

  • client :file_folder: / All
  • server :file_folder: / All
  • config :file_folder: / main.lua
  • stream :file_folder: / All
  • fxmanifest.lua

1 Like

:key: VEHICLE KEYS UPDATE 1.1.2

  • Fixed lockpick spam: rapidly using the item multiple times in a row could trigger several attempts at once.
  • Fixed an issue where the lockpick could break even after successfully completing the minigame.
  • Added utils.CanLockpick to the client > utils.lua file.
  • Added a toggle configuration to allow lockpicking a vehicle while holding a weapon.

Modified files:

  • client :file_folder: / crimes.lua
  • client :file_folder: / utils.lua
  • config :file_folder: / main.lua
  • fxmanifest.lua