Skip to content

VehicleControlChangeRequestPayload

The player and before/after state of an in-game vehicle control change the server is asking about.

type VehicleControlChangeRequestPayload = Readonly<{
player: PlayerSnapshot;
vehicleId: number;
fromState: VehicleStateSnapshot;
toState: VehicleStateSnapshot;
changedControls: readonly VehicleControlName[];
}>;
Field Type Description
player PlayerSnapshot The player whose game reported the input.
vehicleId number The vehicle’s network ID.
fromState VehicleStateSnapshot The currently accepted state.
toState VehicleStateSnapshot The state requested by the player’s game.
changedControls readonly VehicleControlName[] Names of changed controls such as isEngineOn, headlights, windows.frontLeft, or isHoodOpen.