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

Fleet Management

Separate law enforcement and fire/EMS fleets, display fuel and health, highlight vehicles that need attention, and request repairs.

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. Poll for fleet.repair actions. Apply them through the fleet resource, acknowledge them, then republish the authoritative vehicle condition.

Game-Side Outline

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

Action ID
Purpose

fleet.repair

Repair the selected fleet vehicle.

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?