Open-source FiveM scripts, MLOs, vehicles & server packs for ESX, QBCore & Qbox. Browse Shop →
All Shop

ESX Doorlock (VIP) V7

This door lock system for ESX lets you put locks on single doors, double doors and gates in-game. You don’t have to look up door hashes, coordinates and headings and put them in config.lua: you aim at the door, save it with a few commands and choose the options. Doors are stored in the database, so you can add or delete locks without restarting the script.

Door options

  • Authorized jobs for the door
  • Door type (gate or not)
  • Pin code (digital lock that needs a code to open)
  • Unlockable or not (if not, nobody can lockpick or hack it)
  • Door locked by default or open
  • Size of the icon and text on the door
  • Distance for opening and closing the door

Door types

  • Normal doors (can be lockpicked)
  • Digital doors with a pin code (can be hacked)
  • Electric doors such as gates (can be hacked)

Features

  • Doors are stored in the database instead of config.lua; setup and delete work in real time without restarting the script
  • Commands for setup: aimdoor, savedoor1, savedoor2, savemycoords, createdoor, showdoorid, deletedoor, cleardoors
  • Lockpicking with the lockpick item: timer and success chance are configurable, and the lockpick can break on failure
  • Hacking with the keycard item: success chance configurable, optional chance that the keycard breaks
  • Alarm system: when a player starts hacking a door, the security job (default police) can get an alarm, with a configurable chance
  • Key for hacking and lockpicking configurable (default H)
  • The script is open source
  • Includes tutorial videos

Requirements

  • es_extended or ESX Legacy
  • esx_inventory
  • InteractSound
  • mhacking
  • progressBars
  • mysql-async

Installation

  • Import sql/doorlock.sql and sql/items.sql (items lockpick and keycard).
  • Add the item images to your inventory.
  • Copy lockpick.ogg from the sounds folder into InteractSound.
  • Copy the advanced_locksystem resource into your resources folder and add ensure advanced_locksystem to your server.cfg.
  • Watch the included tutorials.