Skip to main content

MSK VehicleKeys

CFX Post

MSK VehicleKeys

A complete vehicle key system for ESX and QBCore. Lock and unlock vehicles with a command, a hotkey or a target — manage primary, secondary and temporary keys, hand keys to other players, exchange locks at a locksmith and even transfer ownership of a vehicle to another player.

Vehicle keys are stored metadata-based as unique items (every vehicle gets its own unique key item) and persisted in a MariaDB table that is created automatically on first start.

Features

  • (Un)lock vehicles via command, hotkey or target (ox_target)
  • Seat selection — choose which seat to enter when using the target (ox_target)
  • Keys menu opened by command or hotkey
  • Three key types — Primary, Secondary and Temporary keys
  • Unique key items — every vehicle has its own metadata-based key item
  • Give keys to other players (secondary key, primary key or full ownership transfer)
  • Transfer vehicle — sell/hand a vehicle including ownership to another player
  • Exchange vehicle locks at a locksmith (removes every other player's key for that vehicle)
  • Keyring system — store all keys in a second inventory (ox_inventory & jaksam_inventory)
  • Job vehicles — players with a specific job (and optionally rank) can (un)lock matching vehicles
  • Whitelist / Blacklist for models and plates
  • Admin vehicles — only configured admin groups can (un)lock them
  • Admin command to (un)lock any vehicle without a key
  • NPC vehicle locking with configurable carjacking probability
  • Version checker and a full export API (client & server)

Inventory Support

InventoryKeyringNotes
ox_inventoryRecommended
jaksam_inventoryItems must be metadata / unique
info

Vehicle keys are metadata-based unique items. Only ox_inventory and jaksam_inventory are supported. Support for qs-inventory and core_inventory was removed in v2.0.0.

Requirements

Optional Requirements

Documentation Overview