Skip to content
RPScripts

FiveM Police Scripts

Doorlock

ESX Doorlock (VIP) V7

  • ESX

Description

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.

Details

Frameworks
ESX
File size
275.8 kB
Updated
Sep 27, 2026
How to install it

Installation

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

Checked: the one resource of this download.

From a static check of the files by the RPScripts Lab. It is not a test that your server starts.

ESX Doorlock (VIP) V7

$14.99€13.99£11.99A$21.99R$76.99CHF 12.99¥2,370

Can't find the exact script? Generate it.

Describe a custom script. 3 free credits per day, up to 15 per calendar month; no card needed.

Try the FiveM AI Script Generator