Table of Contents

Struct VehicleParams

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

Represents the parameters of a vehicle in the game.

public readonly struct VehicleParams : IEquatable<VehicleParams>
Implements
Inherited Members

Constructors

VehicleParams()

Initializes a new instance of the VehicleParams struct with default values.

public VehicleParams()

VehicleParams(sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte, sbyte)

Initializes a new instance of the VehicleParams struct.

public VehicleParams(sbyte engine, sbyte lights, sbyte alarm, sbyte doors, sbyte bonnet, sbyte boot, sbyte objective, sbyte siren, sbyte doorDriver, sbyte doorPassenger, sbyte doorBackLeft, sbyte doorBackRight, sbyte windowDriver, sbyte windowPassenger, sbyte windowBackLeft, sbyte windowBackRight)

Parameters

engine sbyte

The state of the engine.

lights sbyte

The state of the lights.

alarm sbyte

The state of the alarm.

doors sbyte

The state of the doors.

bonnet sbyte

The state of the bonnet.

boot sbyte

The state of the boot.

objective sbyte

The state of the objective.

siren sbyte

The state of the siren.

doorDriver sbyte

The state of the driver's door.

doorPassenger sbyte

The state of the passenger's door.

doorBackLeft sbyte

The state of the back-left door.

doorBackRight sbyte

The state of the back-right door.

windowDriver sbyte

The state of the driver's window.

windowPassenger sbyte

The state of the passenger's window.

windowBackLeft sbyte

The state of the back-left window.

windowBackRight sbyte

The state of the back-right window.

Fields

alarm

Gets the state of the vehicle's alarm.

public readonly sbyte alarm

Field Value

sbyte

bonnet

Gets the state of the vehicle's bonnet.

public readonly sbyte bonnet

Field Value

sbyte

boot

Gets the state of the vehicle's boot.

public readonly sbyte boot

Field Value

sbyte

doorBackLeft

Gets the state of the back-left door.

public readonly sbyte doorBackLeft

Field Value

sbyte

doorBackRight

Gets the state of the back-right door.

public readonly sbyte doorBackRight

Field Value

sbyte

doorDriver

Gets the state of the driver's door.

public readonly sbyte doorDriver

Field Value

sbyte

doorPassenger

Gets the state of the passenger's door.

public readonly sbyte doorPassenger

Field Value

sbyte

doors

Gets the state of the vehicle's doors.

public readonly sbyte doors

Field Value

sbyte

engine

Gets the state of the vehicle's engine.

public readonly sbyte engine

Field Value

sbyte

lights

Gets the state of the vehicle's lights.

public readonly sbyte lights

Field Value

sbyte

objective

Gets the state of the vehicle's objective.

public readonly sbyte objective

Field Value

sbyte

siren

Gets the state of the vehicle's siren.

public readonly sbyte siren

Field Value

sbyte

windowBackLeft

Gets the state of the back-left window.

public readonly sbyte windowBackLeft

Field Value

sbyte

windowBackRight

Gets the state of the back-right window.

public readonly sbyte windowBackRight

Field Value

sbyte

windowDriver

Gets the state of the driver's window.

public readonly sbyte windowDriver

Field Value

sbyte

windowPassenger

Gets the state of the passenger's window.

public readonly sbyte windowPassenger

Field Value

sbyte

Methods

Equals(VehicleParams)

public bool Equals(VehicleParams other)

Parameters

other VehicleParams

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

IsSet()

Determines whether any of the vehicle parameters are set.

public bool IsSet()

Returns

bool

true if any parameter is set; otherwise, false.

ToString()

public override string ToString()

Returns

string

Operators

operator ==(VehicleParams, VehicleParams)

public static bool operator ==(VehicleParams left, VehicleParams right)

Parameters

left VehicleParams
right VehicleParams

Returns

bool

operator !=(VehicleParams, VehicleParams)

public static bool operator !=(VehicleParams left, VehicleParams right)

Parameters

left VehicleParams
right VehicleParams

Returns

bool