Files
community_bridge/modules/doorlocks/doors_creator/server.lua
T
2025-01-08 06:33:31 -05:00

13 lines
326 B
Lua

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