Skip to content

PlayerChangedVehicleSeatPayload

What playerChangedVehicleSeat gets: the payload a handler receives.

type PlayerChangedVehicleSeatPayload = { player: PlayerSnapshot; vehicleId: number; fromSeat: number; toSeat: number };
Field Type Description
player PlayerSnapshot The player.
vehicleId number The vehicle.
fromSeat number The seat they left.
toSeat number The seat they took; 0 is the driver’s.