Skip to content

VehicleDamagedPayload

The current state and source of a vehicle health or damage-condition change.

type VehicleDamagedPayload = Readonly<{
vehicleId: number;
state: VehicleStateSnapshot;
changeSource: "game" | "script" | "repair";
observedAtSessionMs: number;
}>;
Field Type Description
vehicleId number The vehicle’s network ID.
state VehicleStateSnapshot The current shared state and condition.
changeSource "game" | "script" | "repair" Damage from the game, a script setter, or repair.
observedAtSessionMs number When the change was observed on the shared session clock.