OPX//77
CreatorsServer exports

GetAllDoors

Last updated on

Every managed door, ox_doorlock's getAllDoors.

local res = exports.opx_infinity:GetAllDoors()

Scope read · sync.

Returns

  • the doors, as GetDoor, sorted by id

Errors

  • error.unavailable
Example
local res = exports.opx_infinity:GetAllDoors()
if res.ok then
  for _, door in ipairs(res.value) do print(door.id, door.name, door.state) end
end

On this page

No Headings