Files
community_bridge/modules/doorlock/doors_creator/client.lua
T

12 lines
323 B
Lua

---@diagnostic disable: duplicate-set-field
if GetResourceState('doors_creator') == 'missing' then return end
Doorlock = Doorlock or {}
---This will get the closest door to the ped
---@return string | nil
Doorlock.GetClosestDoor = function()
return exports["doors_creator"]:getClosestActiveDoor()
end
return Doorlock