For the complete documentation index, see llms.txt. This page is also available as Markdown.

Door Locks

Monitor police, jail, and prison doors; search by facility; change one lock; or request a lock-all action.

This example connects an existing door lock resource to CAD. Dispatchers can search doors across police stations, jails, and prisons, see whether each controller is online, and view the current lock state. A door used in-game updates CAD, while a CAD user can lock or unlock an online door without entering the game.

Door Locks custom integration panel

How It Connects

  1. Install or update the panel definition when the resource is configured.

  2. On resource start, read every configured door and publish the complete panel state.

  3. When a player or another script changes a door in-game, publish the new state to CAD.

  4. Poll for door.set-locked and doors.lock-all actions. Apply them through the door resource, acknowledge them, then republish the authoritative lock state.

Game-Side Outline

The following is server-side pseudocode. Adapt the events and function names to your door lock resource and preferred API library.

See Set State, Poll Actions, and Acknowledge Action for copyable calls in every supported library.

Actions

Action ID
Purpose

door.set-locked

Lock or unlock one online door.

doors.lock-all

Lock every online door after confirmation.

Definition JSON

Open the raw definition

Copy the complete definition

Example State

Open the raw state

Copy the example state

Last updated

Was this helpful?