CreatorsServer exports
RemoveDoor
Last updated on
Deletes a managed door, ox_doorlock's removeDoor.
local res = exports.opx_infinity:RemoveDoor(ref)Scope write · must be awaited — a synchronous call answers export.mustAwait before touching anything.
Parameters
-
ref:
integer | string— door id or seeded key -
The native door goes back to the game. A door seeded from
DOORSleaves a tombstone so the next boot does not insert it again.
Returns
- nothing (
res.valueis nil)
Errors
doorlock.unknownDoor,doorlock.error.save_failed(wasdoorlock.save_failedbefore PR #95),export.badArgument,error.unavailable
CreateThread(function()
local pending = Open77.exports.call('opx_infinity', 'RemoveDoor', 12)
local res = pending and pending:await()
if not (res and res.ok) then print('refused: ' .. tostring(res and res.error)) end
end)