Skip to content

CarGeneratorSpawnRequestPayload

What carGeneratorSpawnRequest gets: the payload a handler receives.

Renamed in 0.28 from CarGeneratorSpawnPayload; see renamed names.

type CarGeneratorSpawnRequestPayload = {
generatorIndex: number; vehicleModel: number; position: Vector3; facingAngleDegrees: number; isRespawn: boolean;
};
Field Type Description
generatorIndex number The spot, 0 to 181: its place in the server’s table.
vehicleModel number The vehicle the story parks there (a vehicle model, 400 to 611), or -1: any car the making player’s game has loaded, the game’s own rule.
position Vector3 The spot as the story gives it. The vehicle stands on the ground below it, a boat on the water.
facingAngleDegrees number The direction it faces, in degrees.
isRespawn boolean true when a player took the last one; false the first time.