Code Monkey home page Code Monkey logo

nui_doorlock's Introduction

This is an archive for preservation purposes. all credits go to linden and the appropriate parties.

NO SUPPORT PROVIDED BY MYSELF OR THE ORIGINAL AUTHOR.

A fork of esx_doorlock, featuring improved performance and improved functionality.



  • Easily add and configure new doors! Example video
    Use the /newdoor command to automatically create a new entry on the DoorList.

  • No more SetEntityHeading and FreezeEntityPosition natives.
    Doors in range are assigned a doorHash, used with AddDoorToSystem.
    Doors are assigned a state depending on if they are unlocked, locked, or locking with DoorSystemSetDoorState.

  • Garage doors and gates can be locked and will properly move into the correct position.
    If a player comes into range of an unlocked automatic door like this, it will open appropriately.

  • The state of the door is drawn into the world using NUI, meaning full customisation of the appearance and content.
    By default, icons from font-awesome are being displayed; but there is support for images with this method.
    Customisable audio playback! Modify the lock and unlock sound on a door-by-door basic.

  • Improved performance by utilising threads and functions where appropriate.
    Instead of updating the door list every X seconds, your position will be compared to where the last update occured and update when appropriate.
    The state of doors is only checked while in range, and the number of checks per loop depends on the state of the door.

  • Persistent door states! Door states are saved when the resource stops, then loaded back up on start.
    States.json will auto-generate if the file does not exist.

  • Config for both Community MRPD and gabz_MRPD
    Just choose which config file to use and delete the one you are not using.

  • Set door access permissions
    Set multiple jobs to be authorised to use a door, with the minimum required grade authorizedJobs = {['police']=0, ['offpolice']=0}
    Allow the door to be lockpicked with lockpick = true
    Allow item authorisation with items = {'key_master', 'key_lspd'} etc.


https://streamable.com/oheu5e





esx_doorlock

This is a door lock script for ESX, which is used to lock certain doors that shouldn't be accessable by normal citizens.

This script was originally developed by Darklandz, later modified by Miss_Behavin and others.

Legal

License

esx_doorlock - door locks for ESX

Copyright (C) 2015-2018 ElPumpo / Hawaii_Beach

This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.

This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.

You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/.


nui_doorlock's People

Contributors

stuxxyofficial avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.