PlayerChangedVehicleSeatPayload
What playerChangedVehicleSeat gets: the payload a handler receives.
Definition
Section titled “Definition”type PlayerChangedVehicleSeatPayload = { player: PlayerSnapshot; vehicleId: number; fromSeat: number; toSeat: number };Fields
Section titled “Fields”| 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. |
Related
Section titled “Related”playerChangedVehicleSeat: the event