Doorlock — Server
GetResourceName
Returns the doorlock resource name.
local name = Bridge.Doorlock.GetResourceName()
-- Returns: string (always "default")Description:
Returns the name of the Doorlock module resource. Used for internal identification. Always returns "default" for the built-in Doorlock module.
ToggleDoorLock
Toggles a door’s lock state.
Bridge.Doorlock.ToggleDoorLock(doorId)| Parameter | Type | Description |
|---|---|---|
| doorId | any | Door identifier |