Skip to main content
The Doors component manages door lock states, elevator floor access, lockpicking, and dynamic door creation.

Overview

Access via Doors (server-side only).

Lock Control

Lock and unlock doors

Elevators

Multi-floor elevator management

Dynamic Doors

Runtime door creation

Lockpicking

Lockpick support
Server-Side Only: Door state changes must be performed on the server. Changes are automatically broadcast to all clients.

Door Methods

Doors:SetLock

Set the lock state of a door.
string|number
required
Door string ID or numeric index
boolean|nil
required
true = locked, false = unlocked, nil = toggle
boolean
Internal flag for double-door handling (do not set manually)
boolean|nil
New lock state, or nil if door not found
Behavior:
  • If the door has a double property, both doors are updated
  • If the door has autoLock, it will re-lock after the specified seconds
  • Broadcasts Doors:Client:UpdateState to all clients
Example:

Doors:IsLocked

Check if a door is currently locked.
string|number
required
Door string ID or numeric index
boolean
true if locked
Example:

Doors:SetForcedOpen

Force a door to open visually (e.g., after breaching).
string|number
required
Door string ID or numeric index
Example:

Doors:SetElevatorLock

Set the lock state of an elevator floor.
string
required
Elevator identifier
number
required
Floor index
boolean|nil
required
true = locked, false = unlocked, nil = toggle
boolean|nil
New lock state, or nil if not found
Example:

Dynamic Door Exports

These are resource exports (not component methods) for runtime door management.

GetAllDoors

table
All door definitions

AddDynamicDoor

Add a door at runtime (saved to database).
table
required
Door definition (see Configuration page)

RemoveDynamicDoor

Remove a dynamic door.

UpdateDynamicDoor

Update an existing dynamic door.

GetAllElevators


AddDynamicElevator


UpdateDynamicElevator


RemoveDynamicElevator


Server Callbacks


Events


Best Practices


Next Steps

Doors - Configuration

Door and elevator definitions

Jobs API

Job restrictions for doors

Admin Callbacks

Admin door management tools