Skip to content

VehicleAppearanceChangedPayload

A vehicle’s look before and after a change, and who made it.

type VehicleAppearanceChangedPayload = Readonly<{
vehicleId: number;
fromAppearance: VehicleAppearance;
toAppearance: VehicleAppearance;
changeSource: "script" | "game" | "respawn";
player: PlayerSnapshot | null;
observedAtSessionMs: number;
}>;
Field Type Description
vehicleId number The vehicle’s network ID.
fromAppearance VehicleAppearance The look before.
toAppearance VehicleAppearance The look now.
changeSource "script" | "game" | "respawn" Your gamemode, the game (a player in a shop, or hydraulics the game fitted to a lowrider by itself), or a respawn.
player PlayerSnapshot | null The player who made a "game" change in a shop; null for hydraulics the game fitted by itself.
observedAtSessionMs number When the server saw the change, on the shared session clock.