Files
community_bridge/modules/doorlock/ox_doorlock/server.lua
T
MrNewb 8f6fa1e291 Return modules folder
-- Was a git prefrences thing and needed cleaned up
2025-01-13 14:28:09 -05:00

13 lines
326 B
Lua

if GetResourceState('ox_doorlock') ~= 'started' then return end
Doorlock = Doorlock or {}
Doorlock.ToggleDoorLock = function(doorID, toggle)
local state = toggle
if state then
exports.ox_doorlock:setDoorState(doorID, 1)
else
exports.ox_doorlock:setDoorState(doorID, 0)
end
return true
end