Skip to content

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

RPScripts

FiveM Police Scripts

Doorlock

ESX Doorlock (VIP) V7

Amin1992
Frameworks:
  • ESX

Checked by the RPScripts Lab

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

Details

Frameworks
ESX
Dependencies
esx_inventorymysql-async
File size
275.8 kB
Creator
Amin1992
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

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.

Server setup

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

Checked: the only resource of this download.

In your downloads
  • Origen Police
    • ESX
    • QBCore
    Not for your framework

    Origen Police (QBCore & ESX)

    Origen Network

    $23.00$16.10
  • CD Dispatch FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    CD Dispatch

    Codesign

    $20.00$14.00
  • MDT
    • ESX
    Not for your framework

    Police System CAD/MDT

    $24.99$17.49
  • Megaphone Mod (Vehicle & Handheld) FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    Megaphone Mod (Vehicle & Handheld)

    ScriptsM

    $19.00$13.30
  • Advanced Police Job FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    Advanced Police Job

    Wasabi Scripts

    $29.99$20.99
  • Prison
    • ESX
    • Standalone, QBCore, Qbox

    Prison all-in-one system

    rcore

    $32.00$22.40
  • Helicopter Camera FiveM resource preview
    • ESX
    • QBCore, Standalone

    Helicopter Camera

    Mads

    $12.00$8.40
  • BodyCam + Dashcam (Infinity & OneSync) FiveM resource preview
    • ESX
    Not for your framework

    BodyCam + Dashcam (Infinity & OneSync)

    $15.99$11.19