Table of Contents

Struct VehicleDriverSyncPacket

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

Represents synchronization data for a vehicle driver.

public readonly struct VehicleDriverSyncPacket
Inherited Members

Fields

AdditionalKeyWeapon

Gets the combined data for additional key and weapon.

public readonly byte AdditionalKeyWeapon

Field Value

byte

HasTrailer

Gets a value indicating whether the vehicle has a trailer attached.

public readonly BlittableBoolean HasTrailer

Field Value

BlittableBoolean

Health

Gets the health of the vehicle.

public readonly float Health

Field Value

float

HydraThrustAngle

Gets the thrust angle for Hydra vehicles.

public readonly uint HydraThrustAngle

Field Value

uint

Keys

Gets the keys pressed by the driver.

public readonly ushort Keys

Field Value

ushort

LandingGear

Gets the landing gear state of the vehicle.

public readonly byte LandingGear

Field Value

byte

LeftRight

Gets the left-right movement of the vehicle.

public readonly ushort LeftRight

Field Value

ushort

PlayerHealthArmour

Gets the health and armor of the driver.

public readonly Vector2 PlayerHealthArmour

Field Value

Vector2

PlayerID

Gets the ID of the player driving the vehicle.

public readonly int PlayerID

Field Value

int

Position

Gets the position of the vehicle.

public readonly Vector3 Position

Field Value

Vector3

Rotation

Gets the rotation quaternion of the vehicle.

public readonly GTAQuat Rotation

Field Value

GTAQuat

Siren

Gets the siren state of the vehicle.

public readonly byte Siren

Field Value

byte

TrailerID

Gets the ID of the trailer attached to the vehicle.

public readonly ushort TrailerID

Field Value

ushort

UpDown

Gets the up-down movement of the vehicle.

public readonly ushort UpDown

Field Value

ushort

VehicleID

Gets the ID of the vehicle being driven.

public readonly ushort VehicleID

Field Value

ushort

Velocity

Gets the velocity of the vehicle.

public readonly Vector3 Velocity

Field Value

Vector3

Properties

AdditionalKey

Gets the additional key pressed by the driver.

public byte AdditionalKey { get; }

Property Value

byte

TrainSpeed

Gets the speed of the train if the vehicle is a train.

public float TrainSpeed { get; }

Property Value

float

WeaponID

Gets the weapon ID of the driver.

public byte WeaponID { get; }

Property Value

byte