kk-doorlock
A remaked version of QBCore’s original doorlock system.
The script runs at 0.01 idle and 0.05-0.10 when displaying 3d text and close to a door.
The script is made with GTA standard door system which i think is much better than the original freezing entity. So thanks to CharlesHacks Guide on how the GTA doorlock system works.
This script was tested with over 200 set of doors.
Haha thanks, i thought it could be helpfun when the original QBCore doorlock system runs at 1.10 ms when close to a door, and i just found out about CharlesHacks guide and i had to try it
A small suggestion I barely see in those system is a timer on the door when X time passes it will close automatically instead of doing that awkward walk to close the door.
I suggest using PlayerPedId () instead of GetPlayerPed (-1) as it’s a lot faster and use Lua vector math instead off GetDistanceBetweenCoords example #(vector3(x, y, z) - vector3(x, y, z))
Hi, i got an error with setDoorLocking(doorID, k), how i can fix it please? (got nil value)
PM: I delete all the stuff with QBUS because i dont have it, maybe is something miss with QBUS?