Table of Contents

Struct VehicleSpawnData

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Represents the data required to spawn a vehicle.

public readonly struct VehicleSpawnData
Inherited Members

Constructors

VehicleSpawnData(Seconds, int, Vector3, float, int, int, BlittableBoolean, int)

Initializes a new instance of the VehicleSpawnData struct.

public VehicleSpawnData(Seconds respawnDelay, int modelID, Vector3 position, float zRotation, int colour1, int colour2, BlittableBoolean siren, int interior)

Parameters

respawnDelay Seconds
modelID int
position Vector3
zRotation float
colour1 int
colour2 int
siren BlittableBoolean
interior int

Fields

colour1

Gets the primary color of the vehicle.

public readonly int colour1

Field Value

int

colour2

Gets the secondary color of the vehicle.

public readonly int colour2

Field Value

int

interior

Gets the interior ID of the vehicle.

public readonly int interior

Field Value

int

modelID

Gets the model ID of the vehicle.

public readonly int modelID

Field Value

int

position

Gets the position where the vehicle will spawn.

public readonly Vector3 position

Field Value

Vector3

respawnDelay

Gets the respawn delay for the vehicle.

public readonly Seconds respawnDelay

Field Value

Seconds

siren

Gets a value indicating whether the vehicle has a siren.

public readonly BlittableBoolean siren

Field Value

BlittableBoolean

zRotation

Gets the Z rotation of the vehicle.

public readonly float zRotation

Field Value

float