Search Results for

    Show / Hide Table of Contents

    Class Vehicle

    Inheritance
    System.Object
    Entity
    Vehicle
    Implements
    System.IEquatable<Entity>
    IHandleable
    ISpatial
    Inherited Members
    Entity.Handle
    Entity.MemoryAddress
    Entity.IsDead
    Entity.IsAlive
    Entity.Model
    Entity.Alpha
    Entity.ResetAlpha()
    Entity.LodDistance
    Entity.IsPersistent
    Entity.FreezePosition
    Entity.GetBoneIndex(String)
    Entity.HasBone(String)
    Entity.GetBoneCoord(Int32)
    Entity.GetBoneCoord(String)
    Entity.Health
    Entity.MaxHealth
    Entity.Position
    Entity.PositionNoOffset
    Entity.Rotation
    Entity.Heading
    Entity.HeightAboveGround
    Entity.Quaternion
    Entity.UpVector
    Entity.RightVector
    Entity.ForwardVector
    Entity.GetOffsetInWorldCoords(Vector3)
    Entity.GetOffsetFromWorldCoords(Vector3)
    Entity.MaxSpeed
    Entity.Velocity
    Entity.HasBeenDamagedBy(Entity)
    Entity.IsFireProof
    Entity.IsMeleeProof
    Entity.IsBulletProof
    Entity.IsExplosionProof
    Entity.IsCollisionProof
    Entity.IsInvincible
    Entity.IsOnlyDamagedByPlayer
    Entity.IsVisible
    Entity.IsOccluded
    Entity.IsOnFire
    Entity.IsOnScreen
    Entity.IsUpright
    Entity.IsUpsideDown
    Entity.IsInAir
    Entity.IsInWater
    Entity.HasGravity
    Entity.HasCollision
    Entity.HasCollidedWithAnything
    Entity.SetNoCollision(Entity, Boolean)
    Entity.IsInArea(Vector3, Vector3)
    Entity.IsInArea(Vector3, Vector3, Single)
    Entity.IsInAngledArea(Vector3, Vector3, Single)
    Entity.IsInRangeOf(Vector3, Single)
    Entity.IsNearEntity(Entity, Vector3)
    Entity.IsTouching(Model)
    Entity.IsTouching(Entity)
    Entity.AddBlip()
    Entity.CurrentBlip
    Entity.Detach()
    Entity.AttachTo(Entity, Int32)
    Entity.AttachTo(Entity, Int32, Vector3, Vector3)
    Entity.IsAttached()
    Entity.IsAttachedTo(Entity)
    Entity.GetEntityAttachedTo()
    Entity.ApplyForce(Vector3)
    Entity.ApplyForce(Vector3, Vector3)
    Entity.ApplyForce(Vector3, Vector3, ForceType)
    Entity.ApplyForceRelative(Vector3)
    Entity.ApplyForceRelative(Vector3, Vector3)
    Entity.ApplyForceRelative(Vector3, Vector3, ForceType)
    Entity.MarkAsNoLongerNeeded()
    Entity.Delete()
    Entity.Exists()
    Entity.Exists(Entity)
    Entity.Equals(Entity)
    Entity.Equals(Object)
    Entity.GetHashCode()
    System.Object.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: GTA
    Assembly: ScriptHookVDotNet2.dll
    Syntax
    public sealed class Vehicle : Entity, IEquatable<Entity>, IHandleable, ISpatial

    Constructors

    Name Description
    Vehicle(Int32)

    Properties

    Name Description
    Acceleration

    Gets the acceleration of this Vehicle.

    AlarmActive
    BodyHealth

    Gets or sets this Vehicles body health.

    BrakeLightsOn
    CanBeVisiblyDamaged
    CanTiresBurst
    CanWheelsBreak
    ClassType

    Gets the class of this Vehicle.

    ColorCombination
    ColorCombinationCount
    CurrentGear

    Gets or sets the current gear this Vehicle is using.

    CurrentRPM

    Gets or sets the current RPM of this Vehicle.

    CustomPrimaryColor
    CustomSecondaryColor
    DashboardColor
    DirtLevel
    DisplayName

    Gets the display name of this Vehicle. Use GetLocalizedString(String) to get the localized name.

    Driver
    DropsMoneyOnExplosion

    Gets or sets a value indicating whether this Vehicle drops money when destroyed. Only works when the vehicle model is a car, quad bikes or trikes (strictly when the internal vehicle class is CAutomobile or derived class from CAutomobile).

    EngineCanDegrade
    EngineHealth

    Gets or sets this Vehicle engine health.

    EnginePowerMultiplier
    EngineRunning
    EngineTorqueMultiplier
    FriendlyName
    FuelLevel

    Gets or sets this Vehicle fuel level.

    HandbrakeOn
    HasAlarm
    HasBombBay
    HasForks

    Gets a value indicating whether this Vehicle has forks.

    HasRoof
    HasSiren

    Gets a value indicating whether this Vehicle has a siren.

    HasTowArm
    HighBeamsOn
    HighGear
    InteriorLightOn
    IsAxlesStrong
    IsConvertible
    IsDamaged
    IsDriveable
    IsFrontBumperBrokenOff
    IsInBurnout()
    IsOnAllWheels
    IsPrimaryColorCustom
    IsRadioEnabled

    Turns this Vehicles radio on or off

    IsRearBumperBrokenOff
    IsSecondaryColorCustom
    IsSirenSilent

    Sets a value indicating whether the siren on this Vehicle plays sounds.

    IsStolen

    Gets or sets a value indicating whether this Vehicle was stolen.

    IsStopped
    IsStoppedAtTrafficLights
    IsWanted

    Gets or sets a value indicating whether this Vehicle is wanted by the police.

    LandingGear
    LeftHeadLightBroken
    LeftIndicatorLightOn
    LightsMultiplier
    LightsOn
    Livery
    LiveryCount
    LockStatus
    MaxBraking

    Gets the maximum brake power of this Vehicle.

    MaxTraction

    Gets the maximum traction of this Vehicle.

    NeedsToBeHotwired

    Gets or sets a value indicating whether this Vehicle needs to be hotwired to start.

    NeonLightsColor
    NumberPlate
    NumberPlateMounting
    NumberPlateType
    Occupants
    PassengerCount
    Passengers
    PassengerSeats
    PearlescentColor
    PetrolTankHealth

    Gets or sets this Vehicle petrol tank health.

    PreviouslyOwnedByPlayer

    Gets or sets a value indicating whether this Vehicle was previously owned by a Player.

    PrimaryColor
    ProvidesCover

    Gets or sets a value indicating whether peds can use this Vehicle for cover.

    RadioStation

    Sets this Vehicles radio station.

    RightHeadLightBroken
    RightIndicatorLightOn
    RimColor
    RoofState
    SearchLightOn
    SecondaryColor
    SirenActive
    Speed
    Steering
    SteeringAngle

    Gets or sets the steering angle of this Vehicle.

    SteeringScale

    Gets or sets the steering scale of this Vehicle.

    TaxiLightOn
    TireSmokeColor
    TowedVehicle
    TowingCraneRaisedAmount
    TrimColor
    WheelSpeed

    Gets the speed the drive wheels are turning at, This is the value used for the dashboard speedometers(after being converted to mph).

    WheelType
    WindowTint

    Methods

    Name Description
    ApplyDamage(Vector3, Single, Single)
    BreakDoor(VehicleDoor)
    BurstTire(Int32)
    CargoBobMagnetGrabVehicle()
    CargoBobMagnetReleaseVehicle()
    ClearCustomPrimaryColor()
    ClearCustomSecondaryColor()
    CloseBombBay()
    CloseDoor(VehicleDoor, Boolean)
    CreatePedOnSeat(VehicleSeat, Model)
    CreateRandomPedOnSeat(VehicleSeat)
    DetachFromTowTruck()
    DetachTowedVehicle()
    DropCargobobHook(CargobobHook)
    Explode()

    Explode this Vehicle instantaneously.

    ExtraExists(Int32)
    FixTire(Int32)
    FixWindow(VehicleWindow)
    GetDoorAngleRatio(VehicleDoor)
    GetDoors()
    GetMod(VehicleMod)
    GetModCount(VehicleMod)
    GetModName(VehicleMod, Int32)
    GetModTypeName(VehicleMod)
    GetPedOnSeat(VehicleSeat)
    GetToggleModTypeName(VehicleToggleMod)
    InstallModKit()
    IsCargobobHookActive()
    IsCargobobHookActive(CargobobHook)
    IsDoorBroken(VehicleDoor)
    IsDoorOpen(VehicleDoor)
    IsExtraOn(Int32)
    IsNeonLightsOn(VehicleNeonLight)
    IsSeatFree(VehicleSeat)
    IsTireBurst(Int32)
    IsToggleModOn(VehicleToggleMod)
    OpenBombBay()
    OpenDoor(VehicleDoor, Boolean, Boolean)
    PlaceOnGround()
    PlaceOnNextStreet()
    RemoveCargobobHook()
    RemoveWindow(VehicleWindow)
    Repair()

    Repair all damage to this Vehicle instantaneously.

    RollDownWindow(VehicleWindow)
    RollDownWindows()
    RollUpWindow(VehicleWindow)
    SetDoorBreakable(VehicleDoor, Boolean)
    SetHeliYawPitchRollMult(Single)
    SetMod(VehicleMod, Int32, Boolean)
    SetNeonLightsOn(VehicleNeonLight, Boolean)
    SmashWindow(VehicleWindow)
    SoundHorn(Int32)

    Sounds the horn on this Vehicle.

    StartAlarm()

    Starts sounding the alarm on this Vehicle.

    ToggleExtra(Int32, Boolean)
    ToggleMod(VehicleToggleMod, Boolean)
    TowVehicle(Vehicle, Boolean)
    Wash()
    ☀
    ☾
    Back to top Copyright (C) 2015 crosire - zlib
    Generated with DocFX