Overview
Access viaDoors (server-side only).
Lock Control
Lock and unlock doors
Elevators
Multi-floor elevator management
Dynamic Doors
Runtime door creation
Lockpicking
Lockpick support
Door Methods
Doors:SetLock
Set the lock state of a door.Door string ID or numeric index
true = locked, false = unlocked, nil = toggleInternal flag for double-door handling (do not set manually)
New lock state, or
nil if door not found- If the door has a
doubleproperty, both doors are updated - If the door has
autoLock, it will re-lock after the specified seconds - Broadcasts
Doors:Client:UpdateStateto all clients
Doors:IsLocked
Check if a door is currently locked.Door string ID or numeric index
true if lockedDoors:SetForcedOpen
Force a door to open visually (e.g., after breaching).Door string ID or numeric index
Doors:SetElevatorLock
Set the lock state of an elevator floor.Elevator identifier
Floor index
true = locked, false = unlocked, nil = toggleNew lock state, or
nil if not foundDynamic Door Exports
These are resource exports (not component methods) for runtime door management.GetAllDoors
All door definitions
AddDynamicDoor
Add a door at runtime (saved to database).Door definition (see Configuration page)
RemoveDynamicDoor
Remove a dynamic door.UpdateDynamicDoor
Update an existing dynamic door.GetAllElevators
AddDynamicElevator
UpdateDynamicElevator
RemoveDynamicElevator
Server Callbacks
| Callback | Description |
|---|---|
Doors:Fetch | Returns all door and elevator data + configs |
Doors:ToggleLocks | Toggle a door lock (checks authorization) |
Doors:Lockpick | Attempt to lockpick a door |
Doors:Elevators:ToggleLocks | Toggle elevator floor lock |
Doors:Elevator:Validate | Validate elevator usage |
Events
| Event | Direction | Description |
|---|---|---|
Doors:Client:UpdateState | Server → Client | Door lock state changed |
Doors:Client:SetForcedOpen | Server → Client | Door forced open |
Doors:Client:UpdateElevatorState | Server → Client | Elevator floor lock changed |
Doors:Client:AttemptLockpick | Server → Client | Start lockpick minigame |
Doors:Server:LockpickFailed | Client → Server | Lockpick attempt failed |
Best Practices
Use String IDs for Important Doors
Use String IDs for Important Doors
Check Lock State Before Actions
Check Lock State Before Actions
Next Steps
Doors - Configuration
Door and elevator definitions
Jobs API
Job restrictions for doors
Admin Callbacks
Admin door management tools