This resource makes doors lockable and only let people with the correct job allowed toggle the door state. The configuration file is very easy to understand and you can with ease add more doors.
This script is discontinued by me, you should use nui_doorlock instead! It’s a major improvement from this script. Don’t use this old script!
Download & Installation
The current code is not maintained by me, but from whatever is left of the ESX community
What happens if you happen to lock the door not entirely closed? What state is the door to other players? I had problems with that with dRdoors. The door was entirely closed for some and entirely open for others.
Frankly original developer never licensed the script, and this isn’t properly done either as there must be legal information in every .lua file (Which makes it legal).
I have a lot of experience when it comes to sharing stuff, and many are really shady. If you’re not happy with me licensing to GPLv3 you can stop using my work.
Behavin apparently licensed his script under GPLv3, which tops it off by forcing me to use GPLv3
But wait, by “default” everything someone makes is automatically copyrighted the second his/hers work is finished. If nothing else is specified that would mean this work was copyrighted by default. I am not using your work btw, I have my own even more heavily modified version of this script. Stop assuming everyone uses “your” scripts just because they are posting in a thread made by you. You live in Sweden which means the following applies to you. Probably is the same in most countries.
> 26 h § Återgivning av ett datorprograms kod eller översättning av kodens form är tillåten om åtgärderna krävs för att få den information som är nödvändig för att uppnå samverkansförmåga mellan programmet och ett annat program. Detta gäller dock endast under förutsättning att följande villkor är uppfyllda:
>
> 1. åtgärderna utförs av en person som har rätt att använda programmet eller för hans räkning av en person som har fått rätt att utföra åtgärderna,
> 2. den information som är nödvändig för att uppnå samverkansförmåga har inte tidigare varit lätt åtkomlig för de i 1 angivna personerna och
> 3. åtgärderna är begränsade till de delar av originalprogrammet som är nödvändiga för att uppnå den avsedda samverkansförmågan.
> Första stycket innebär inte att informationen får
>
> 1. användas för andra ändamål än att uppnå den avsedda samverkansförmågan,
> 2. överlämnas till andra personer, utom när detta är nödvändigt för att uppnå den avsedda samverkansförmågan,
> 3. användas för utveckling, tillverkning eller marknadsföring av ett datorprogram som i förhållande till det skyddade programmet har en väsentligen likartad uttrycksform eller
> 4. användas för andra åtgärder som utgör intrång i upphovsrätten.
Sadly getting time warnings on slow computers is nothing I can do about unless major refactoring happen & I come up with improved code. That’s why I tend to extend the wait time for all the scripts I’m maintaining, but it can cause stuff to blink since x should run every frame, but on a fast computer doesn’t have to.
I recently started joining random RP servers, and noticed that (almost) every server I joined had major performance issues (fps), gotta be those never ending loops with basicly no wait time, running every damn frame.
Everyone asking for implemeneting keys: no. it’s way too fucking easy to change from checking the player job to checking if the player has a key on him. Sure thing it could be a nice addition but currently I have other things on my mind, so either implement it yourself or stop thinking that people will take all your feedback.
All good. I don’t get them at all but yes the lower end computers and slower internet provider people are seeing it. Just wanted to make sure I wasn’t the only one experiencing it