2025-05-09 02:01:37 -04:00
|
|
|
---@diagnostic disable: duplicate-set-field
|
2025-05-18 23:45:37 -04:00
|
|
|
if GetResourceState('doors_creator') == 'missing' then return end
|
2025-01-10 16:36:20 -05:00
|
|
|
|
|
|
|
|
Doorlock = Doorlock or {}
|
|
|
|
|
|
2025-04-19 14:37:10 -04:00
|
|
|
---This will get the closest door to the ped
|
|
|
|
|
---@return string | nil
|
2025-01-10 16:36:20 -05:00
|
|
|
Doorlock.GetClosestDoor = function()
|
|
|
|
|
return exports["doors_creator"]:getClosestActiveDoor()
|
2025-05-10 00:01:56 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
return Doorlock
|