Skip to content

VehicleModelInfo

A stock vehicle model’s size, the positions of its seats, wheels, fuel cap and bumpers, the colors it comes in, and the paintjobs and components it takes. Positions are in metres from the vehicle’s centre, in the vehicle’s own space: x to its right, y forward, z up. A wheel position is the right-hand wheel’s; the left one is the same with x negated. A part the model does not have is null.

type VehicleModelInfo = Readonly<{
model: number;
name: string;
size: Vector3 | null;
frontSeatOffset: Vector3 | null;
rearSeatOffset: Vector3 | null;
petrolCapOffset: Vector3 | null;
frontWheelOffset: Vector3 | null;
rearWheelOffset: Vector3 | null;
middleWheelOffset: Vector3 | null;
frontBumperZ: number | null;
rearBumperZ: number | null;
colorVariants: readonly (readonly number[])[];
paintjobCount: number;
compatibleComponents: readonly number[];
}>;
Field Type Description
model number The vehicle model ID.
name string The game’s name for the model, such as "infernus".
size Vector3 | null Width, length and height in metres. null for the RC camera, which has no body.
frontSeatOffset Vector3 | null The front passenger seat.
rearSeatOffset Vector3 | null The rear right seat, or a bike’s pillion.
petrolCapOffset Vector3 | null The fuel cap.
frontWheelOffset Vector3 | null The front right wheel, or a bike’s front wheel.
rearWheelOffset Vector3 | null The rear right wheel, or a bike’s rear wheel.
middleWheelOffset Vector3 | null The middle right wheel of a six-wheeled vehicle.
frontBumperZ number | null The height of the front bumper.
rearBumperZ number | null The height of the rear bumper.
colorVariants readonly (readonly number[])[] The color sets the game picks from: pairs, or four colors for a few models.
paintjobCount number How many paintjobs it has.
compatibleComponents readonly number[] The components it takes, in ascending order.