Skip to main content
This example connects an existing garage or fleet resource to CAD. Police, fire, and EMS vehicles are grouped by fleet and show their fuel, health, station, and service state. Damage, refueling, spawning, and repairs performed in-game update CAD, while a CAD user can send a repair request back to the resource. Fleet Management custom integration panel

How It Connects

  1. Install or update the panel definition when the resource is configured.
  2. On resource start, read the fleet database or garage resource and publish the complete state.
  3. Publish again when a vehicle is spawned, stored, damaged, refueled, repaired, or moved between service states.
  4. Receive pushes for fleet.repair actions. Apply them through the fleet resource, acknowledge them, then republish the authoritative vehicle condition.

Game-Side Outline

Push is the primary delivery path. The scheduling and processPanelActionOnce functions below are pseudocode supplied by your integration; they are not SDK helpers. processPanelActionOnce records the completed result, acknowledges it, retries failed acknowledgements without repeating the effect, and returns true only after acknowledgement succeeds. Use one serial queue for both paths and keep the backup polling cursor separate from pushed actions. See Action Push Events for routing, deduplication, acknowledgement, and recovery rules. The following is server-side pseudocode. Adapt the events and function names to your fleet resource and preferred API library.
See Set State, Poll Actions, and Acknowledge Action for copyable calls in every supported library.

Actions

Definition JSON

Open the raw definition

Example State

Open the raw state