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.

How It Connects
Install or update the panel definition when the resource is configured.
On resource start, read the fleet database or garage resource and publish the complete state.
Publish again when a vehicle is spawned, stored, damaged, refueled, repaired, or moved between service states.
Poll for
fleet.repairactions. 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
fleet.repair
Repair the selected fleet vehicle.
Definition JSON
Example State
Last updated
Was this helpful?

