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

20 lines
532 B
Lua
Raw Normal View History

2025-05-09 02:01:37 -04:00
---@diagnostic disable: duplicate-set-field
2025-05-18 23:45:37 -04:00
if GetResourceState('ox_doorlock') == 'missing' then return end
Doorlock = Doorlock or {}
2025-04-08 19:10:02 -04:00
---This will get the closest door to the ped
---@return string | nil
Doorlock.GetClosestDoor = function()
2025-05-09 02:01:37 -04:00
local doorData = exports.ox_doorlock:getClosestDoor()
if not doorData then return end
return tostring(doorData.id) or nil
end
2025-09-10 12:27:12 -04:00
---This will get the name of the in use resource.
---@return string
Doorlock.GetResourceName = function()
return 'ox_doorlock'
end
return Doorlock