Last updated 2 years ago
exports["doors_creator"]:setDoorState(doorId, state)
Citizen.CreateThread(function() local doors = exports["doors_creator"]:getAllDoors() -- This will close ALL the doors for k, doorData in pairs(doors) do exports["doors_creator"]:setDoorState(doorData.id, 1) end end)
doorId
integer
The door ID
state
Door new state. 1 = locked, 0 = unlocked