Remove this thanks

yeah i try to set single door but it says this error which you found in my image above which i forgot to say soz


also the lock symbol does no come up so i cant lock or unlock the doors for some reason but i have put my job authorisation in as put in the image below.

413 still doesn’t contain doorType, so…

Thanks for this great resource :smiley:

How do you edit existing doors??

Just modify the config files. There are options for doors that you can only set in there (fixText, manually setting textCoords, autoLock, lockpick, etc).

great tool and everything seems working fine. Unfortunately I have one issue with items. I added key_pbh as an item to my inventory but when I try to use it I get the following error message:

SCRIPT ERROR: @nui_doorlock/server/main.lua:67: attempt to index a nil value

The item is also integrated in the items database and visible in my inventory.

Any ideas?

1 Like

OK, I fixed the issue for me. Replaced line 75 in server/main.lua

count = xPlayer.getInventoryItem(k).count

into

count = xPlayer.getInventoryItem(v).count

I keep getting this error in the client/main.lua

Having the exact same issue.

Same here.

same here!

1 Like

i have the new version but i get an error when i run the script

error : @nui_doorlock/server/main.lua:40: in main chunk

So don’t use the latest version, which specifically states it is for ESX Legacy?

1 Like

I’ve disabled github issues because it’s all the same garbage. I will drop support for this resource again if I have to keep dealing with the same questions.

when i set my authorized grade to 4 (boss) every grade is still able to open the door, any reasons why?

something something low iq

what do you mean sorry? im still new to coding and learning

any help with the grades anyone?

If this script doens’t work you are almost 100% sure on Esx 1.* and not on 2.0 where the new version of this script works on.

I suggest you download the old version from his git and tweak it, or upgrade to ESX 2.0 LEGACY. One small problem, you will have to re-code almost your whole server xd

ESX Legacy is not ESX 2.0 (aka Reborn); it’s equivalent to ESX 1.3.
You don’t need to recode anything, unless you’re using essentialmode still (in 2021 lmao).

Would you consider making a Qbus version? :slight_smile: