Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

FiveM Vehicle Scripts

Dusa Vehicle Key System

Vehicle Key System

DusaBought 10 times
Frameworks:
  • ESX
  • QBCore

Checked by the RPScripts Lab

  • Static check: 1 resource read
What was checked
Check compatibility with your server

Details

Frameworks
ESX, QBCore
Version
1.2
File size
4.9 MB
Creator
Dusa
Updated
Licence and support terms
  • Licence: for your own server or project. No resale or sharing.
  • Updates: when a newer file is available, it appears in your account downloads.
  • Support: download access and product-specific setup questions.
Licence and support terms

Description

Vehicle keys for FiveM: owners lock and unlock with L, switch the engine with G and hand keys to nearby players. Without keys, players lockpick, hotwire or carjack, and each attempt can alert the police or the NPC owner.

Features

  • Lock and unlock (default L) and engine on/off (default G), both rebindable
  • Optional key fob, opened with I
  • Lockpicking with normal and advanced lockpicks; a failed attempt breaks the pick with a configurable chance (50 % and 20 % by default)
  • Hotwiring with a configurable success chance, delay and progress bar length
  • Carjacking NPC drivers at gunpoint, with a flee chance per weapon group; melee weapons and throwables are blacklisted
  • Owner scenario: after a failed lockpick an NPC can come to defend the vehicle
  • Police alerts with separate day and night chances (night = 01:00–06:00) and a cooldown
  • Shared job keys: employees of a job (e.g. police, mechanic) can lock any of the job's listed models
  • Lists of vehicles that can't be carjacked (useful for heist scripts) or can't be locked
  • Commands to give, add and remove keys by player ID and plate
  • Cars driven or parked by NPCs are locked by default; both are switchable

Configuration

  • Progress bar: ox_lib, mythic, rprogress, progressbar or none. Text UI: drawtext or ox_lib (for ox_lib, enable its line in the fxmanifest)
  • Notifications, the lockpick minigame and the police alert are short functions in config.lua, so you can point them at the notify, lockpick and dispatch resources your server already uses
  • All player-facing messages are in the Config.Language table

Server setup

  1. Unzip the download into your server's resources folder.
  2. Add these lines to server.cfg, in this order:
    ensure dusa_vehiclekeys

Step-by-step guide: how to install a FiveM script

Checked: the only resource of this download.

In your downloads
  • JG Dealerships
    • ESX
    • QBCore, Qbox
    Not for your framework

    JG Dealerships

    JG Scripts

    $30.00$21.00
  • Car Radio
    • ESX
    • QBCore, vRP
    Not for your framework

    Car Music System V3 [Standalone]

    $14.99$10.49
  • Simple ESX HUD FiveM resource preview
    • ESX
    • Standalone, QBCore, Qbox

    Airbags Script

    Big Daddy

    $9.00$6.30
  • mCarControl
    • ESX
    • QBCore
    Not for your framework

    CodeM mCarControl

    CodeM

    $5.00$3.50
  • Quasar Vehiclekeys 2.0 FiveM resource preview 2
    • ESX
    • Standalone, QBCore, Qbox

    Quasar Vehiclekeys

    Quasar Scripts

    $10.00$7.00
  • CodeM mVehicleshop v2 FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    CodeM mVehicleshop v2

    CodeM

    $15.00$10.50
  • Smart Motorways
    • ESX
    • QBCore, Qbox, vRP
    Not for your framework

    London Studios Smart Motorways

    London Studios

    $30.00$21.00
  • Cardealer by Zerio
    • ESX
    • QBCore, Qbox
    Not for your framework

    Zerio Cardealer

    $19.00$13.30